0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

Problem: cygwin build defines ZMQ_HAVE_WINDOWS

Solution: do not check for windows.h on cygwin
This commit is contained in:
Simon Giesecke 2018-05-24 15:12:57 +02:00
parent c5d422c02b
commit eccf2e53bc

View File

@ -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)