Commit 7ada633e authored by Philippe Virouleau's avatar Philippe Virouleau
Browse files

Increase template depth

Clang's default value for maximum template depth is 256, which is not enough for ScalFMM.
Set a default compiler option to GCC's default value.
parent 9be714ee
......@@ -165,6 +165,11 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules/morse_
# -xHost -mfpmath=sse
# -Wall Wnosign-conversion
# Set a fixed template depth
# Compilers don't use the same default for template-depth, we can enforce the same one everywhere.
# The magic number comes from GCC's default:
set(SCALFMM_CXX_FLAGS "${SCALFMM_CXX_FLAGS} -ftemplate-depth=900")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment