Fix libmv build error on OS X with Xcode 5.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 Sep 2013 12:15:14 +0000 (12:15 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Mon, 9 Sep 2013 12:15:14 +0000 (12:15 +0000)
CMakeLists.txt

index e0d7b81cc0cb7caf5cd2a164cab3eecc79322177..a692a63782bcfbabaa62303cd630140b9e762456 100644 (file)
@@ -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()
 
 #-----------------------------------------------------------------------------