Set -ftemplate-depth=1024 for all Clang compilers. Allows to compile
e.g. under Ubuntu with clang.release/4.3a0
parent
06185754f9
commit
1ea5ae2253
|
@ -55,10 +55,8 @@ endif()
|
||||||
|
|
||||||
# Clang on Mac uses a template depth that is less than standard and is too small
|
# Clang on Mac uses a template depth that is less than standard and is too small
|
||||||
if(${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
|
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")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ftemplate-depth=1024")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
|
||||||
|
|
||||||
# Set up build type library postfixes
|
# Set up build type library postfixes
|
||||||
if(GTSAM_BUILD_TYPE_POSTFIXES)
|
if(GTSAM_BUILD_TYPE_POSTFIXES)
|
||||||
|
|
Loading…
Reference in New Issue