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