mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-10-18 03:29:50 +02:00
Problem: cppzmq needs to be installed for pkg-config libzmq
Solution: Make sure that FinZeroMQ.cmake is present in cppzmq's build (binary) directory
This commit is contained in:
@@ -59,6 +59,10 @@ install(FILES ${CPPZMQ_HEADERS}
|
|||||||
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
|
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
|
||||||
set(CPPZMQ_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for cppzmqConfig.cmake")
|
set(CPPZMQ_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for cppzmqConfig.cmake")
|
||||||
|
|
||||||
|
configure_file(libzmq-pkg-config/FindZeroMQ.cmake
|
||||||
|
libzmq-pkg-config/FindZeroMQ.cmake
|
||||||
|
COPYONLY)
|
||||||
|
|
||||||
export(EXPORT ${PROJECT_NAME}-targets
|
export(EXPORT ${PROJECT_NAME}-targets
|
||||||
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake")
|
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake")
|
||||||
configure_package_config_file(${PROJECT_NAME}Config.cmake.in
|
configure_package_config_file(${PROJECT_NAME}Config.cmake.in
|
||||||
|
@@ -48,10 +48,6 @@ cppzmq_build() {
|
|||||||
fi
|
fi
|
||||||
cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
|
cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
|
||||||
cmake --build ${CPPZMQ} -- -j${JOBS}
|
cmake --build ${CPPZMQ} -- -j${JOBS}
|
||||||
if [ "${BUILD_TYPE}" = "pkgconfig" ] ; then
|
|
||||||
cd ${CPPZMQ}
|
|
||||||
sudo make install
|
|
||||||
fi
|
|
||||||
popd
|
popd
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -66,8 +62,8 @@ cppzmq_demo() {
|
|||||||
pushd .
|
pushd .
|
||||||
if [ "${BUILD_TYPE}" = "cmake" ] ; then
|
if [ "${BUILD_TYPE}" = "cmake" ] ; then
|
||||||
export ZeroMQ_DIR=${LIBZMQ}
|
export ZeroMQ_DIR=${LIBZMQ}
|
||||||
export cppzmq_DIR=${CPPZMQ}
|
|
||||||
fi
|
fi
|
||||||
|
cppzmq_DIR=${CPPZMQ} \
|
||||||
cmake -Hdemo -Bdemo/build
|
cmake -Hdemo -Bdemo/build
|
||||||
cmake --build demo/build
|
cmake --build demo/build
|
||||||
cd demo/build
|
cd demo/build
|
||||||
|
Reference in New Issue
Block a user