mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: duplicated pkg-config template
Solution: use the same for both autotools and cmake
This commit is contained in:
parent
ed8ed727c6
commit
9d06e29cb2
@ -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)
|
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)
|
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)
|
set(zmq-pkgconfig ${CMAKE_CURRENT_BINARY_DIR}/libzmq.pc)
|
||||||
|
|
||||||
if(NOT ZMQ_BUILD_FRAMEWORK)
|
if(NOT ZMQ_BUILD_FRAMEWORK)
|
||||||
|
@ -1046,7 +1046,6 @@ EXTRA_DIST = \
|
|||||||
CMakeLists.txt \
|
CMakeLists.txt \
|
||||||
autogen.sh \
|
autogen.sh \
|
||||||
version.sh \
|
version.sh \
|
||||||
src/libzmq.pc.cmake.in \
|
|
||||||
ci_build.sh \
|
ci_build.sh \
|
||||||
src/libzmq.vers \
|
src/libzmq.vers \
|
||||||
src/version.rc.in \
|
src/version.rc.in \
|
||||||
|
@ -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@
|
|
Loading…
x
Reference in New Issue
Block a user