mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Fix cmake build on windows.
This commit is contained in:
parent
0e0c46aedc
commit
05229ea673
@ -42,10 +42,11 @@ if(POLLER STREQUAL "")
|
||||
else()
|
||||
if(CMAKE_HOST_WIN32)
|
||||
set(CMAKE_REQUIRED_INCLUDES winsock2.h)
|
||||
set(HAVE_SELECT 1)
|
||||
else()
|
||||
set(CMAKE_REQUIRED_INCLUDES sys/select.h)
|
||||
check_function_exists(select HAVE_SELECT)
|
||||
endif()
|
||||
check_function_exists(select HAVE_SELECT)
|
||||
set(CMAKE_REQUIRED_INCLUDES )
|
||||
if(HAVE_SELECT)
|
||||
set(POLLER "select")
|
||||
|
Loading…
x
Reference in New Issue
Block a user