diff options
author | Jens Verwiebe <info@jensverwiebe.de> | 2013-10-24 22:46:00 +0400 |
---|---|---|
committer | Jens Verwiebe <info@jensverwiebe.de> | 2013-10-24 22:46:00 +0400 |
commit | 4e96e04643dfa5fbc56e784c2f85e8636f029252 (patch) | |
tree | 439bdbc74f521367bcac2efea1d6eff278a3ed61 /CMakeLists.txt | |
parent | 804643793eab79f13da2215a521b56a0dcc264c3 (diff) |
OSX/CMake: fix ftemplate condition
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
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() |