diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-09 16:15:14 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-09 16:15:14 +0400 |
commit | d703f616dbacb868f29a8bde1dccad020e5b9ab2 (patch) | |
tree | 32523d8be5f225fb2d903aa211c7a48f741599e4 /CMakeLists.txt | |
parent | 24b27b0474a609f1bc68f3857bfc58fe1af9af3e (diff) |
Fix libmv build error on OS X with Xcode 5.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e0d7b81cc0c..a692a63782b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1783,6 +1783,9 @@ elseif(APPLE) set(CMAKE_C_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing") set(CMAKE_CXX_FLAGS_RELEASE "-mdynamic-no-pic -fno-strict-aliasing") endif() + + # Xcode 5 has too low template depth of 128 for libmv + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024") endif() #----------------------------------------------------------------------------- |