Fixed building on MingW.

This commit is contained in:
Ryan C. Gordon 2017-07-10 17:50:27 -04:00
parent 4015689068
commit ebb00f0520
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "SunOS")
set(SOLARIS TRUE)
endif()
# Don't treat MingW as Unix; use it as a strictly-Windows compiler.
if(MINGW)
set(UNIX FALSE)
endif()
include(CheckIncludeFile)
include(CheckLibraryExists)
include(CheckCSourceCompiles)