From 1ea5ae22535b1ed4bd7d823abff293976c393410 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Thu, 9 Apr 2015 13:41:14 +0200 Subject: [PATCH] Set -ftemplate-depth=1024 for all Clang compilers. Allows to compile e.g. under Ubuntu with clang. --- cmake/GtsamBuildTypes.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/GtsamBuildTypes.cmake b/cmake/GtsamBuildTypes.cmake index 1bead58d8..14c37dda0 100644 --- a/cmake/GtsamBuildTypes.cmake +++ b/cmake/GtsamBuildTypes.cmake @@ -55,9 +55,7 @@ endif() # Clang on Mac uses a template depth that is less than standard and is too small if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") - if(NOT "${CMAKE_CXX_COMPILER_VERSION}" VERSION_LESS "5.0") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024") - endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024") endif() # Set up build type library postfixes