mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-17 00:12:49 +03:00
Closes: https://bugs.gentoo.org/957220 Closes: https://bugs.gentoo.org/963333 Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com> Part-of: https://github.com/gentoo/gentoo/pull/43958 Closes: https://github.com/gentoo/gentoo/pull/43958 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
33 lines
926 B
Diff
33 lines
926 B
Diff
From: https://github.com/luceneplusplus/LucenePlusPlus/pull/218
|
|
|
|
From: Gianfranco Costamagna <locutusofborg@debian.org>
|
|
Date: Mon, 8 Sep 2025 15:05:58 +0200
|
|
Subject: [PATCH] Bump minimum std-version to 17, fixing FTBFS with new gcc-15
|
|
and googletest
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -47,7 +47,7 @@ include(dependencies)
|
|
include(Lucene++Docs)
|
|
|
|
# Enable C++11
|
|
-set(CMAKE_CXX_STANDARD 11)
|
|
+set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
####################################
|
|
--- a/src/test/gtest/CMakeLists.txt
|
|
+++ b/src/test/gtest/CMakeLists.txt
|
|
@@ -11,9 +11,9 @@ project(googletest-distribution)
|
|
set(GOOGLETEST_VERSION 1.10.0)
|
|
|
|
if (CMAKE_VERSION VERSION_LESS "3.1")
|
|
- add_definitions(-std=c++11)
|
|
+ add_definitions(-std=c++17)
|
|
else()
|
|
- set(CMAKE_CXX_STANDARD 11)
|
|
+ set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
if(NOT CYGWIN)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|