From 85aa9ffd802ff5607cc99b55b839f7fb698d0367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 16 Oct 2013 13:41:50 +0000 Subject: [PATCH] Removed obsolete ftemplate-depth, as the defaults should be fine git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@975 fdac6126-5c0c-442c-9429-916003d36597 --- cmake/ACGCompiler.cmake | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/cmake/ACGCompiler.cmake b/cmake/ACGCompiler.cmake index bdb8ad46..dd70fea8 100644 --- a/cmake/ACGCompiler.cmake +++ b/cmake/ACGCompiler.cmake @@ -66,13 +66,15 @@ if (UNIX) list(APPEND ADDITIONAL_C_DEBUG_FLAGS "-DINCLUDE_TEMPLATES" ) list(APPEND ADDITIONAL_C_RELEASE_FLAGS "-DINCLUDE_TEMPLATES" ) list(APPEND ADDITIONAL_C_RELWITHDEBINFO_FLAGS "-DINCLUDE_TEMPLATES" ) - - # Increase the template depth as this might be exceeded from time to time - IF( NOT CMAKE_SYSTEM MATCHES "SunOS*") - list(APPEND ADDITIONAL_CXX_DEBUG_FLAGS "-ftemplate-depth-100" ) - list(APPEND ADDITIONAL_CXX_RELEASE_FLAGS "-ftemplate-depth-100" ) - list(APPEND ADDITIONAL_CXX_RELWITHDEBINFO_FLAGS "-ftemplate-depth-100" ) - ENDIF() + +# Deprecated setting. Remove in future release, as the default template depth +# should be enough with state of the art compilers +# # Increase the template depth as this might be exceeded from time to time +# IF( NOT CMAKE_SYSTEM MATCHES "SunOS*") +# list(APPEND ADDITIONAL_CXX_DEBUG_FLAGS "-ftemplate-depth-100" ) +# list(APPEND ADDITIONAL_CXX_RELEASE_FLAGS "-ftemplate-depth-100" ) +# list(APPEND ADDITIONAL_CXX_RELWITHDEBINFO_FLAGS "-ftemplate-depth-100" ) +# ENDIF() ################################################################################ # OS Defines