From 4fe347f2e942a888cbeec6d292ee1c5079391570 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 14 Jul 2015 09:12:10 -0400 Subject: [PATCH] set template depth on MAC OS --- cmake/checks/check_02_system_features.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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() -- 2.39.5