diff --git a/CMakeLists.txt b/CMakeLists.txt index f5a378ee..21dbf819 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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")