mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-22 10:25:52 +01:00
Added ZMQ_BUILD_TESTS to CMakeLists.txt to allow turning off tests. Useful when building ZMQ as a git submodule.
This commit is contained in:
parent
5a47fc4f08
commit
7a86b39d63
@ -580,6 +580,12 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug") # Why?
|
|||||||
endforeach()
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#-----------------------------------------------------------------------------
|
||||||
|
# tests
|
||||||
|
|
||||||
|
set(ZMQ_BUILD_TESTS ON CACHE BOOL "Build the tests for ZeroMQ")
|
||||||
|
|
||||||
|
if(ZMQ_BUILD_TESTS)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
set(tests
|
set(tests
|
||||||
test_system
|
test_system
|
||||||
@ -656,6 +662,8 @@ if(NOT WIN32)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
endif() # ZMQ_BUILD_TESTS
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# installer
|
# installer
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user