CMake: Attempt to fix broken CI workflow (clang@rocky-8.6)

This commit is contained in:
Shahram Najm 2024-01-31 17:39:27 +00:00
parent 15c5c2ebcc
commit 1eb6c9ae16
1 changed files with 4 additions and 2 deletions

View File

@ -74,9 +74,11 @@ endif()
# some variables/options of this project
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
ecbuild_add_cxx_flags("-Wno-write-strings -Wno-deprecated")
ecbuild_add_cxx_flags("-Wno-write-strings")
ecbuild_add_cxx_flags("-Wno-deprecated")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
ecbuild_add_cxx_flags("-Wno-write-strings -Wno-deprecated")
ecbuild_add_cxx_flags("-Wno-write-strings")
ecbuild_add_cxx_flags("-Wno-deprecated")
elseif( CMAKE_CXX_COMPILER_ID STREQUAL "Cray" )
set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
endif()