1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: Hack to require g++14 standard, needed for g++ 8.3 compilation
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2019-07-16
Forwarded: no
--- a/cmake/ecbuild_get_cxx11_flags.cmake
+++ b/cmake/ecbuild_get_cxx11_flags.cmake
@@ -27,17 +27,17 @@
check_cxx_compiler_flag(-std=c++0x has_std_cpp0x)
check_cxx_compiler_flag(-hstd=c++11 has_hstd_cpp11)
if(MINGW)
- check_cxx_compiler_flag(-std=gnu++11 has_std_gnupp11)
+ check_cxx_compiler_flag(-std=gnu++14 has_std_gnupp11)
check_cxx_compiler_flag(-std=gnu++0x has_std_gnupp0x)
endif(MINGW)
if(has_std_gnupp11)
- set(${CXX11_FLAGS} "-std=gnu++11" PARENT_SCOPE)
+ set(${CXX11_FLAGS} "-std=gnu++14" PARENT_SCOPE)
elseif(has_std_gnupp0x)
set(${CXX11_FLAGS} "-std=gnu++0x" PARENT_SCOPE)
elseif(has_hstd_cpp11)
set(${CXX11_FLAGS} "-hstd=c++11" PARENT_SCOPE)
elseif(has_std_cpp11)
- set(${CXX11_FLAGS} "-std=c++11" PARENT_SCOPE)
+ set(${CXX11_FLAGS} "-std=c++14" PARENT_SCOPE)
elseif(has_std_cpp0x)
set(${CXX11_FLAGS} "-std=c++0x" PARENT_SCOPE)
else()
|