mirror of https://github.com/ecmwf/eccodes.git
ECC-1508: Tune compilation flags
This commit is contained in:
parent
bf80a67c0a
commit
2df3f5518a
|
@ -68,7 +68,7 @@ ecbuild_info("Operating system=${CMAKE_SYSTEM} (${EC_OS_BITS} bits)")
|
|||
if( CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
|
||||
ecbuild_add_cxx_flags("-Wno-write-strings -Wno-deprecated")
|
||||
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
||||
ecbuild_add_cxx_flags("-Wno-deprecated")
|
||||
ecbuild_add_cxx_flags("-Wno-write-strings -Wno-deprecated")
|
||||
elseif( CMAKE_CXX_COMPILER_ID STREQUAL "Cray" )
|
||||
set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue