Commit c83d4e01 authored by Samuel Martin's avatar Samuel Martin

cmake: tests: disable test_fork if fork() is not available

fork() support is optional and its availability is correctly detected at
contfigure time.

But test_fork was all always built, preventing build for targets that do
not provide fork() from building successfully.

This pacth fixes the CMakeLists.txt on this point.
parent 6fdafc45
......@@ -717,11 +717,13 @@ if(ZMQ_BUILD_TESTS)
test_monitor
test_pair_ipc
test_reqrep_ipc
test_fork
test_abstract_ipc
test_proxy
test_filter_ipc
)
if(HAVE_FORK)
list(APPEND tests test_fork)
endif()
endif()
foreach(test ${tests})
......
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