Commit eccf2e53 authored by Simon Giesecke's avatar Simon Giesecke

Problem: cygwin build defines ZMQ_HAVE_WINDOWS

Solution: do not check for windows.h on cygwin
parent c5d422c0
......@@ -227,7 +227,11 @@ include (CMakeDependentOption)
include (CheckCXXSymbolExists)
include (CheckSymbolExists)
check_include_files (windows.h ZMQ_HAVE_WINDOWS)
if (NOT CYGWIN)
# TODO cannot we simply do 'if (WIN32) set(ZMQ_HAVE_WINDOWS ON)' or similar?
check_include_files (windows.h ZMQ_HAVE_WINDOWS)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND CMAKE_SYSTEM_VERSION STREQUAL "10.0")
SET(ZMQ_HAVE_WINDOWS_UWP ON)
ADD_DEFINITIONS(-D_WIN32_WINNT=_WIN32_WINNT_WIN10)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment