diff --git a/CMakeLists.txt b/CMakeLists.txt index aac53b2b..837338bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -918,7 +918,12 @@ file(REMOVE ${CMAKE_CURRENT_SOURCE_DIR}/src/platform.hpp) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/builds/cmake/platform.hpp.in ${CMAKE_CURRENT_BINARY_DIR}/platform.hpp) list(APPEND sources ${CMAKE_CURRENT_BINARY_DIR}/platform.hpp) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/libzmq.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc @ONLY) +set(prefix ${CMAKE_INSTALL_PREFIX}) +set(exec_prefix ${prefix}) +set(libdir ${prefix}/lib) +set(includedir ${prefix}/include) +set(VERSION ${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.${ZMQ_VERSION_PATCH}) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/libzmq.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc @ONLY) set(zmq-pkgconfig ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc) if(NOT ZMQ_BUILD_FRAMEWORK) diff --git a/Makefile.am b/Makefile.am index 28e83a92..c7292228 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1046,7 +1046,6 @@ EXTRA_DIST = \ CMakeLists.txt \ autogen.sh \ version.sh \ - src/libzmq.pc.cmake.in \ ci_build.sh \ src/libzmq.vers \ src/version.rc.in \ diff --git a/src/libzmq.pc.cmake.in b/src/libzmq.pc.cmake.in deleted file mode 100644 index 54b6a257..00000000 --- a/src/libzmq.pc.cmake.in +++ /dev/null @@ -1,11 +0,0 @@ -prefix=@CMAKE_INSTALL_PREFIX@ -exec_prefix=${prefix} -libdir=${prefix}/lib -includedir=${prefix}/include - -Name: libzmq -Description: 0MQ c++ library -Version: @ZMQ_VERSION_MAJOR@.@ZMQ_VERSION_MINOR@.@ZMQ_VERSION_PATCH@ -Libs: -L${libdir} -lzmq -Libs.private: -lstdc++ @pkg_config_libs_private@ -Cflags: -I${includedir} @pkg_config_defines@