diff --git a/CMakeLists.txt b/CMakeLists.txt index 5bf71f02..b94ea270 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,7 +40,7 @@ if(POLLER STREQUAL "") if(HAVE_POLL) set(POLLER "poll") else() - if(CMAKE_HOST_WIN32) + if(WIN32) set(CMAKE_REQUIRED_INCLUDES winsock2.h) set(HAVE_SELECT 1) else()