From 1e51d6e043ed60108d09800fc43143bedd9c65af Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Thu, 26 Jul 2018 00:26:16 -0400 Subject: [PATCH] Problem: cmake: pkgconfig always installed in lib. Solution: Use cmake's libdir variable to ensure that the pkgconfig file ends up in the correct lib/lib64 directory. This matches the autotools behaviour. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e8ada73..31716611 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -900,7 +900,7 @@ configure_file (${CMAKE_CURRENT_SOURCE_DIR}/src/libzmq.pc.cmake.in ${CMAKE_CURRE set (zmq-pkgconfig ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc) if (NOT ZMQ_BUILD_FRAMEWORK) - install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc DESTINATION lib/pkgconfig) + install (FILES ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) endif () if (MSVC)