Skip to content

Commit

Permalink
#1799: CMake: do not apply -ftemplate-backtrace-limit for older Intel…
Browse files Browse the repository at this point in the history
… compilers
  • Loading branch information
cz4rs committed May 23, 2022
1 parent d654077 commit 1f2358c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmake/turn_on_warnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ if(NOT DEFINED VT_WARNING_FLAGS)
add_cxx_compiler_flag_if_supported("-Wno-unknown-pragmas")
add_cxx_compiler_flag_if_supported("-Wsign-compare")
# Not really a warning, is still diagnostic related..
add_cxx_compiler_flag_if_supported("-ftemplate-backtrace-limit=100")
if (NOT CMAKE_CXX_COMPILER_ID STREQUAL Intel OR
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 2021)
add_cxx_compiler_flag_if_supported("-ftemplate-backtrace-limit=100")
endif()

if (vt_werror_enabled) # Treat warning as errors
add_cxx_compiler_flag_if_supported("-Werror")
Expand Down

0 comments on commit 1f2358c

Please sign in to comment.