File: c%2B%2B14.patch

package info (click to toggle)
pktools 2.6.7.6%2Bds-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,132 kB
  • sloc: cpp: 33,451; xml: 10,955; python: 1,601; makefile: 137; sh: 58; ansic: 24
file content (15 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Use C++14 to fix FTFBS with armadillo 15.x.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://savannah.nongnu.org/bugs/index.php?67681

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -165,7 +165,7 @@ else()
 
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC ${PKTOOLS_COMMON_CXX_FLAGS}")
     if (CMAKE_COMPILER_IS_GNUCXX)
-      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+      set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
     endif()
 
   elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")