Explorar o código

Fixed building on MingW.

Ryan C. Gordon %!s(int64=8) %!d(string=hai) anos
pai
achega
ebb00f0520
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      CMakeLists.txt

+ 5 - 0
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)