Commit d4704752 authored by Francis Hart's avatar Francis Hart

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.
parent dee02131
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment