0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

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.
This commit is contained in:
Samuel Martin 2014-05-03 14:05:05 +02:00
parent 6fdafc458a
commit c83d4e01dd

View File

@ -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})