File: 0001-Build-with-cxx17-instead-of-cxx11.patch

package info (click to toggle)
libwebm 1.0.0.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,132 kB
  • sloc: cpp: 32,181; sh: 508; python: 128; makefile: 32
file content (29 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
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
29
From: Boyuan Yang <byang@debian.org>
Date: Sat, 16 Aug 2025 18:58:43 -0400
Subject: Build with cxx17 instead of cxx11

Googletest no longer supports building in c++11. Bumping version
specification in CMakeLists.txt to c++17.

Forwarded: not-needed
Last-Update: 2025-08-16
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19852cd..0fa5996 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -32,9 +32,9 @@ if(WIN32
    OR CYGWIN
    OR MSYS)
   # Allow use of rand_r() / fdopen() and other POSIX functions.
-  require_cxx_flag_nomsvc("-std=gnu++11")
+  require_cxx_flag_nomsvc("-std=gnu++17")
 else()
-  require_cxx_flag_nomsvc("-std=c++11")
+  require_cxx_flag_nomsvc("-std=c++17")
 endif()
 
 add_cxx_preproc_definition("__STDC_CONSTANT_MACROS")