mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
Enable building IPC filtering with cmake.
This commit is contained in:
parent
dc9b1309b9
commit
dc5528cba6
@ -40,6 +40,7 @@ include(CheckCXXCompilerFlag)
|
|||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
include(CheckCSourceRuns)
|
include(CheckCSourceRuns)
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
|
include(CheckCXXSymbolExists)
|
||||||
|
|
||||||
check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS)
|
check_include_files(ifaddrs.h ZMQ_HAVE_IFADDRS)
|
||||||
check_include_files(windows.h ZMQ_HAVE_WINDOWS)
|
check_include_files(windows.h ZMQ_HAVE_WINDOWS)
|
||||||
@ -51,6 +52,9 @@ check_library_exists(ws2 printf "" HAVE_WS2)
|
|||||||
check_library_exists(rpcrt4 printf "" HAVE_RPCRT4) # UuidCreateSequential
|
check_library_exists(rpcrt4 printf "" HAVE_RPCRT4) # UuidCreateSequential
|
||||||
check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses
|
check_library_exists(iphlpapi printf "" HAVE_IPHLAPI) # GetAdaptersAddresses
|
||||||
|
|
||||||
|
check_cxx_symbol_exists(SO_PEERCRED sys/socket.h ZMQ_HAVE_SO_PEERCRED)
|
||||||
|
check_cxx_symbol_exists(LOCAL_PEERCRED sys/socket.h ZMQ_HAVE_LOCAL_PEERCRED)
|
||||||
|
|
||||||
find_library(RT_LIBRARY rt)
|
find_library(RT_LIBRARY rt)
|
||||||
|
|
||||||
find_package(Threads)
|
find_package(Threads)
|
||||||
@ -630,6 +634,7 @@ list(APPEND tests
|
|||||||
test_abstract_ipc
|
test_abstract_ipc
|
||||||
test_fork
|
test_fork
|
||||||
test_proxy
|
test_proxy
|
||||||
|
test_filter_ipc
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
#cmakedefine ZMQ_HAVE_EVENTFD
|
#cmakedefine ZMQ_HAVE_EVENTFD
|
||||||
#cmakedefine ZMQ_HAVE_IFADDRS
|
#cmakedefine ZMQ_HAVE_IFADDRS
|
||||||
|
|
||||||
|
#cmakedefine ZMQ_HAVE_SO_PEERCRED
|
||||||
|
#cmakedefine ZMQ_HAVE_LOCAL_PEERCRED
|
||||||
|
|
||||||
#cmakedefine ZMQ_HAVE_SOCK_CLOEXEC
|
#cmakedefine ZMQ_HAVE_SOCK_CLOEXEC
|
||||||
#cmakedefine ZMQ_HAVE_SO_KEEPALIVE
|
#cmakedefine ZMQ_HAVE_SO_KEEPALIVE
|
||||||
#cmakedefine ZMQ_HAVE_TCP_KEEPCNT
|
#cmakedefine ZMQ_HAVE_TCP_KEEPCNT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user