Skip to content

Commit

Permalink
Suppress Clang compilation error related to Boost
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento committed Nov 25, 2024
1 parent 61ec541 commit 1f0851c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# fatal error: recursive template instantiation exceeded maximum depth of 256
#
ecbuild_add_cxx_flags("-ftemplate-depth=1024")

#
# In case of using Clang 18.1+ in Linux, we disable the following error (present in Boost headers):
#
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18.1 AND CMAKE_SYSTEM_NAME STREQUAL "Linux")
ecbuild_add_cxx_flags("-Wno-enum-constexpr-conversion")
endif ()
endif()

if (HAVE_WARNINGS)
Expand Down

0 comments on commit 1f0851c

Please sign in to comment.