Skip to content

Commit ecbcf10

Browse files
committed
Problem: cppzmq needs to be installed for pkg-config libzmq
Solution: Make sure that FinZeroMQ.cmake is present in cppzmq's build (binary) directory
1 parent b11e445 commit ecbcf10

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ install(FILES ${CPPZMQ_HEADERS}
5959
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
6060
set(CPPZMQ_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for cppzmqConfig.cmake")
6161

62+
configure_file(libzmq-pkg-config/FindZeroMQ.cmake
63+
libzmq-pkg-config/FindZeroMQ.cmake
64+
COPYONLY)
65+
6266
export(EXPORT ${PROJECT_NAME}-targets
6367
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake")
6468
configure_package_config_file(${PROJECT_NAME}Config.cmake.in

ci_build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ cppzmq_build() {
4848
fi
4949
cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
5050
cmake --build ${CPPZMQ} -- -j${JOBS}
51-
if [ "${BUILD_TYPE}" = "pkgconfig" ] ; then
52-
cd ${CPPZMQ}
53-
sudo make install
54-
fi
5551
popd
5652
}
5753

@@ -66,8 +62,8 @@ cppzmq_demo() {
6662
pushd .
6763
if [ "${BUILD_TYPE}" = "cmake" ] ; then
6864
export ZeroMQ_DIR=${LIBZMQ}
69-
export cppzmq_DIR=${CPPZMQ}
7065
fi
66+
cppzmq_DIR=${CPPZMQ} \
7167
cmake -Hdemo -Bdemo/build
7268
cmake --build demo/build
7369
cd demo/build

0 commit comments

Comments
 (0)