CMake: Disable some features when using MinGW and full cmake config
authorSergey Sharybin <sergey.vfx@gmail.com>
Sat, 26 Dec 2015 15:07:40 +0000 (20:07 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Sat, 26 Dec 2015 15:07:40 +0000 (20:07 +0500)
build_files/cmake/config/blender_full.cmake

index ad8a681567526a1f4be71cf8aa9f91ca9394a910..5903eb9b3a82727ab8d020b5be86d67d89488efd 100644 (file)
@@ -60,10 +60,16 @@ if(UNIX AND NOT APPLE)
        set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
 elseif(WIN32)
        set(WITH_JACK                OFF CACHE BOOL "" FORCE)
-       set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
+       if(NOT CMAKE_COMPILER_IS_GNUCC)
+               set(WITH_OPENSUBDIV          ON  CACHE BOOL "" FORCE)
+       else()
+               # MinGW exceptions
+               set(WITH_OPENSUBDIV          OFF CACHE BOOL "" FORCE)
+               set(WITH_CODEC_SNDFILE       OFF CACHE BOOL "" FORCE)
+               set(WITH_CYCLES_OSL          OFF CACHE BOOL "" FORCE)
+       endif()
 elseif (APPLE)
        set(WITH_JACK                ON  CACHE BOOL "" FORCE)
        set(WITH_CODEC_QUICKTIME     ON  CACHE BOOL "" FORCE)
        set(WITH_OPENSUBDIV          OFF CACHE BOOL "" FORCE)
 endif()
-