mirror of https://github.com/ecmwf/eccodes.git
Cray compiler: Enable ISO C++ 2011 standard
This commit is contained in:
parent
fdcddc2352
commit
8954e62739
|
@ -70,6 +70,9 @@ ecbuild_add_option( FEATURE EXPERIMENTAL_BUILD_WITH_CXX
|
||||||
DEFAULT OFF )
|
DEFAULT OFF )
|
||||||
if( HAVE_EXPERIMENTAL_BUILD_WITH_CXX )
|
if( HAVE_EXPERIMENTAL_BUILD_WITH_CXX )
|
||||||
enable_language( CXX )
|
enable_language( CXX )
|
||||||
|
if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Cray" )
|
||||||
|
set(CMAKE_CXX_FLAGS "-hstd=c++11 ${CMAKE_CXX_FLAGS}")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE PRODUCT_GRIB
|
ecbuild_add_option( FEATURE PRODUCT_GRIB
|
||||||
|
|
Loading…
Reference in New Issue