File: cxx-standard-20.patch

package info (click to toggle)
gdcm 3.0.24-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,816 kB
  • sloc: cpp: 203,722; ansic: 76,471; xml: 48,131; python: 3,473; cs: 2,308; java: 1,629; lex: 1,290; sh: 334; php: 128; makefile: 97
file content (28 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download | duplicates (2)
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
From: Andreas Hasenack <andreas.hasenack@canonical.com>
Date: Sat, 14 Sep 2024 10:59:43 +0200
Subject: set CXX standard to 20, following poppler's change[1]

Bug: https://sourceforge.net/p/gdcm/bugs/561/
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gdcm/+bug/2070303
Last-Update: 2024-06-24

1. https://gitlab.freedesktop.org/poppler/poppler/-/commit/d8ae3ba#9a2aa4db38d3115ed60da621e012c0efc0172aae
Last-Update: 2024-06-24
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c218aad..b78ec4b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,9 @@ project(GDCM
 ## NOTE: the "DESCRIPTION" feature of project() was introduced in cmake 3.10.0
 set(PROJECT_DESCRIPTION "GDCM - Grassroots DICOM. GDCM is yet another DICOM library.")
 
+# https://sourceforge.net/p/gdcm/bugs/561/
+# due to https://gitlab.freedesktop.org/poppler/poppler/-/commit/d8ae3ba#9a2aa4db38d3115ed60da621e012c0efc0172aae
+set(CMAKE_CXX_STANDARD 20)
 ## Set aliases for backwards compatibility.  GDCM_VERSION_XXX are configured by the project() command 
 set(GDCM_MAJOR_VERSION ${GDCM_VERSION_MAJOR})
 set(GDCM_MINOR_VERSION ${GDCM_VERSION_MINOR})