Cray compiler: Enable ISO C++ 2011 standard

This commit is contained in:
Shahram Najm 2022-08-01 21:38:23 +01:00
parent fdcddc2352
commit 8954e62739
1 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,9 @@ ecbuild_add_option( FEATURE EXPERIMENTAL_BUILD_WITH_CXX
DEFAULT OFF )
if( HAVE_EXPERIMENTAL_BUILD_WITH_CXX )
enable_language( CXX )
if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Cray" )
set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
endif()
endif()
ecbuild_add_option( FEATURE PRODUCT_GRIB