mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 06:41:03 +08:00
Add cmake build option for disabling tests
This adds a new cmake build option called BUILD_TESTS, that can be used to enable/disable building of the tests. This is enabled by default.
This commit is contained in:
parent
dee0213108
commit
d470475272
@ -1074,7 +1074,9 @@ endif ()
|
||||
#-----------------------------------------------------------------------------
|
||||
# tests
|
||||
|
||||
set (ZMQ_BUILD_TESTS ON CACHE BOOL "Build the tests for ZeroMQ")
|
||||
option(BUILD_TESTS "Whether or not to build the tests" ON)
|
||||
|
||||
set (ZMQ_BUILD_TESTS ${BUILD_TESTS} CACHE BOOL "Build the tests for ZeroMQ")
|
||||
|
||||
if (ZMQ_BUILD_TESTS)
|
||||
enable_testing () # Enable testing only works in root scope
|
||||
|
Loading…
x
Reference in New Issue
Block a user