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 374e6d8 commit 66aadf8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmake/CompilerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ ecbuild_info( "CMAKE_C_COMPILER_VERSION : ${CMAKE_C_COMPILER_VERSION}")
ecbuild_info( "CMAKE_CXX_COMPILER_ID : ${CMAKE_CXX_COMPILER_ID}")
ecbuild_info( "CMAKE_CXX_COMPILER_VERSION : ${CMAKE_CXX_COMPILER_VERSION}")

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
#
# 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 66aadf8

Please sign in to comment.