mirror of
https://github.com/zeromq/cppzmq.git
synced 2025-05-04 00:08:25 +02:00
Merge pull request #210 from kleisauke/patch-2
Problem: tests are always building
This commit is contained in:
commit
e317fc873a
@ -76,5 +76,9 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake
|
|||||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libzmq-pkg-config/FindZeroMQ.cmake
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libzmq-pkg-config/FindZeroMQ.cmake
|
||||||
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR}/libzmq-pkg-config)
|
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR}/libzmq-pkg-config)
|
||||||
|
|
||||||
enable_testing()
|
option(CPPZMQ_BUILD_TESTS "Whether or not to build the tests" ON)
|
||||||
add_subdirectory(tests)
|
|
||||||
|
if (CPPZMQ_BUILD_TESTS)
|
||||||
|
enable_testing()
|
||||||
|
add_subdirectory(tests)
|
||||||
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user