Skip to content

Commit d487e67

Browse files
authored
Merge pull request #234 from kurdybacha/cmake-tweaks
Problem: cppzmq needs to be installed for pkg-config libzmq
2 parents b11e445 + 869ebe1 commit d487e67

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Supported platforms
2323

2424
- Only a subset of the platforms that are supported by libzmq itself are supported. Some features already require a compiler supporting C++11. In the future, probably all features will require C++11. To build and run the tests, cmake and googletest are required.
2525
- Tested libzmq versions are
26-
- 4.2.4 (without DRAFT API)
26+
- 4.2.0 (without DRAFT API)
2727
- 4.2.5 (with and without DRAFT API)
2828
- Platforms with full support (i.e. CI executing build and tests)
2929
- Ubuntu 14.04 x64 (with gcc 4.8.4) (without DRAFT API only)

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)