Merge pull request #1967 from hitstergtd/x-add-militant-option

Problem: No CMake option to set ZMQ_ACT_MILITANT
This commit is contained in:
Luca Boccassi 2016-05-06 21:05:40 +01:00
commit c1dc9d0244

View File

@ -71,6 +71,11 @@ ELSE (ENABLE_DRAFTS)
set (pkg_config_defines "")
ENDIF (ENABLE_DRAFTS)
option (WITH_MILITANT "Enable militant assertions" OFF)
if (WITH_MILITANT)
add_definitions(-DZMQ_ACT_MILITANT)
endif()
set (POLLER "" CACHE STRING "Choose polling system. valid values are
kqueue, epoll, devpoll, poll or select [default=autodetect]")