mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08: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()
|
||||
endif()
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# tests
|
||||
|
||||
set(ZMQ_BUILD_TESTS ON CACHE BOOL "Build the tests for ZeroMQ")
|
||||
|
||||
if(ZMQ_BUILD_TESTS)
|
||||
enable_testing()
|
||||
set(tests
|
||||
test_system
|
||||
@ -656,6 +662,8 @@ if(NOT WIN32)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
endif() # ZMQ_BUILD_TESTS
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
# installer
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user