0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +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:
Francis Hart 2018-02-14 14:58:58 +02:00
parent dee0213108
commit d470475272

View File

@ -1074,7 +1074,9 @@ endif ()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# tests # 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) if (ZMQ_BUILD_TESTS)
enable_testing () # Enable testing only works in root scope enable_testing () # Enable testing only works in root scope