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:
parent
6fdafc458a
commit
c83d4e01dd
@ -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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user