File: g%2B%2B14.patch

package info (click to toggle)
metview 5.26.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 614,356 kB
  • sloc: cpp: 560,586; ansic: 44,641; xml: 19,933; f90: 17,984; sh: 7,454; python: 5,565; yacc: 2,318; lex: 1,372; perl: 701; makefile: 87
file content (28 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (4)
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()