From ce4c4f2a056adf8c27ce0073afff29087e804a1f Mon Sep 17 00:00:00 2001 From: xantares Date: Mon, 14 Apr 2014 21:49:57 +0200 Subject: [PATCH] Fixed mingw poll detection --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()