Skip to content

Commit

Permalink
Merge pull request zeromq#234 from kurdybacha/cmake-tweaks
Browse files Browse the repository at this point in the history
Problem: cppzmq needs to be installed for pkg-config libzmq
  • Loading branch information
sigiesec authored May 19, 2018
2 parents b11e445 + 869ebe1 commit d487e67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ install(FILES ${CPPZMQ_HEADERS}
# 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")

configure_file(libzmq-pkg-config/FindZeroMQ.cmake
libzmq-pkg-config/FindZeroMQ.cmake
COPYONLY)

export(EXPORT ${PROJECT_NAME}-targets
FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake")
configure_package_config_file(${PROJECT_NAME}Config.cmake.in
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Supported platforms

- 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.
- Tested libzmq versions are
- 4.2.4 (without DRAFT API)
- 4.2.0 (without DRAFT API)
- 4.2.5 (with and without DRAFT API)
- Platforms with full support (i.e. CI executing build and tests)
- Ubuntu 14.04 x64 (with gcc 4.8.4) (without DRAFT API only)
Expand Down
6 changes: 1 addition & 5 deletions ci_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ cppzmq_build() {
fi
cmake -H. -B${CPPZMQ} ${ZEROMQ_CMAKE_FLAGS}
cmake --build ${CPPZMQ} -- -j${JOBS}
if [ "${BUILD_TYPE}" = "pkgconfig" ] ; then
cd ${CPPZMQ}
sudo make install
fi
popd
}

Expand All @@ -66,8 +62,8 @@ cppzmq_demo() {
pushd .
if [ "${BUILD_TYPE}" = "cmake" ] ; then
export ZeroMQ_DIR=${LIBZMQ}
export cppzmq_DIR=${CPPZMQ}
fi
cppzmq_DIR=${CPPZMQ} \
cmake -Hdemo -Bdemo/build
cmake --build demo/build
cd demo/build
Expand Down

0 comments on commit d487e67

Please sign in to comment.