mirror of https://github.com/ecmwf/eccodes.git
CMake: Clang v16 warnings
This commit is contained in:
parent
c96c128032
commit
f72c6ac9bf
|
@ -80,6 +80,8 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL
|
|||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 16)
|
||||
ecbuild_add_cxx_flags("-Wno-write-strings")
|
||||
ecbuild_add_cxx_flags("-Wno-deprecated")
|
||||
else()
|
||||
ecbuild_add_cxx_flags("-Wno-writable-strings")
|
||||
endif()
|
||||
elseif( CMAKE_CXX_COMPILER_ID STREQUAL "Cray" )
|
||||
set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
|
||||
|
|
Loading…
Reference in New Issue