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:
authorJens Verwiebe <info@jensverwiebe.de>2013-10-24 22:46:00 +0400
committerJens Verwiebe <info@jensverwiebe.de>2013-10-24 22:46:00 +0400
commit4e96e04643dfa5fbc56e784c2f85e8636f029252 (patch)
tree439bdbc74f521367bcac2efea1d6eff278a3ed61
parent804643793eab79f13da2215a521b56a0dcc264c3 (diff)
OSX/CMake: fix ftemplate condition
-rw-r--r--CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fbb7c17e64b..c34fc5acb31 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1805,13 +1805,9 @@ elseif(APPLE)
set(CMAKE_CXX_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing")
endif()
- if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
- if(${CMAKE_GENERATOR} MATCHES "Xcode")
- if(${XCODE_VERSION} VERSION_EQUAL 5 OR ${XCODE_VERSION} VERSION_GREATER 5)
- # Xcode 5 has too low template depth of 128 for libmv
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
- endif()
- endif()
+ if(${XCODE_VERSION} VERSION_EQUAL 5 OR ${XCODE_VERSION} VERSION_GREATER 5)
+ # Xcode 5 is always using CLANG, which has too low template depth of 128 for libmv
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
endif()
endif()