summaryrefslogtreecommitdiff
path: root/user/libkexiv2/backport.patch
blob: 93d27e4a8ebfe631e2e6907542a186f7200e0ab2 (plain) (blame)
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
30
31
From 6dce742b86d6f1a42f80017868759a8dca677b1d Mon Sep 17 00:00:00 2001
From: Nicolas Fella <nicolas.fella@gmx.de>
Date: Thu, 19 May 2022 22:44:12 +0200
Subject: [PATCH] Lower C++ standard from 17 to 14

exiv is not C++17 compatible

It uses e.g. auto_ptr in its headers

CCBUG: 454050
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7f5b065..48ea18b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,9 @@ cmake_minimum_required(VERSION ${CMAKE_MIN_VERSION})
 
 project(libkexiv2 VERSION "5.0.0")
 
+set(CMAKE_CXX_STANDARD 14) # exiv is not compatible with C++ > 14 yet
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
+
 message(STATUS "----------------------------------------------------------------------------------")
 message(STATUS "Starting CMake configuration for: ${PROJECT_NAME}")
 
-- 
GitLab