Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-12-26 18:01:17 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-12-26 18:01:17 +0300
commit4415e52009b5387e7386887588b9c9d9665989c8 (patch)
tree95bcda030e66ad0b3c28ea53a2350581d620ce35 /CMakeLists.txt
parent4332a56742786f67f284af59bd60788bb288072b (diff)
CMake: Fix errors building by MinGW
Some libraries are nto updated for MinGW hence build system needs some exceptions for this compiler.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 14248d6da3a..ca23e760ff0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1585,8 +1585,13 @@ elseif(WIN32)
if(WITH_SDL)
set(SDL ${LIBDIR}/sdl)
set(SDL_INCLUDE_DIR ${SDL}/include)
- set(SDL_LIBRARY SDL2)
set(SDL_LIBPATH ${SDL}/lib)
+ # MinGW TODO: Update MinGW to SDL2
+ if(NOT CMAKE_COMPILER_IS_GNUCC)
+ set(SDL_LIBRARY SDL2)
+ else()
+ set(SDL_LIBRARY SDL)
+ endif()
endif()
# Audio IO