From ebb00f0520d41cb3c40f9d3a3ad5ba9f30106c83 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 10 Jul 2017 17:50:27 -0400 Subject: [PATCH] Fixed building on MingW. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c5833d3..603d6f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)