From: Timo Heister Date: Tue, 14 Jul 2015 13:12:10 +0000 (-0400) Subject: set template depth on MAC OS X-Git-Tag: v8.3.0-rc1~11^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1133%2Fhead;p=dealii.git set template depth on MAC OS --- diff --git a/cmake/checks/check_02_system_features.cmake b/cmake/checks/check_02_system_features.cmake index 9485bae7f4..cd58f41416 100644 --- a/cmake/checks/check_02_system_features.cmake +++ b/cmake/checks/check_02_system_features.cmake @@ -89,6 +89,12 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Darwin") # TODO: MM: Check whether this is still necessary... # STRIP_FLAG(DEAL_II_LINKER_FLAGS "-rdynamic") + + # + # At least on Clang 5.0.0 the template depth is set to 128, which is too low + # to compile parts of the library. Fix this by setting a large value. + # + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-ftemplate-depth=1024") ENDIF()