From fe3cfc6455981cb6c7beae95713d22c431f3439e Mon Sep 17 00:00:00 2001
From: Mladen Milinkovic <maxrd2@smoothware.net>
Date: Wed, 22 May 2024 21:35:41 +0200
Subject: [PATCH] Increased required std to C++17 #100

C++17 is supported since gcc7 and ICU 75 headers require it.
---
 CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e60e910a..fade001b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,17 +7,16 @@ if(QT_MAJOR_VERSION EQUAL 6)
 	set(QT_MIN_VERSION "6.0.0")
 	set(KF_MAJOR_VERSION "6")
 	set(KF_MIN_VERSION "5.240.0")
-	set(CMAKE_CXX_STANDARD 17)
 else()
 	set(QT_EXTRA_COMPONENTS)
 	set(QT_MAJOR_VERSION 5)
 	set(QT_MIN_VERSION "5.9.0")
 	set(KF_MAJOR_VERSION "5")
 	set(KF_MIN_VERSION "5.44.0")
-	set(CMAKE_CXX_STANDARD 11)
 endif()
 
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
+set(CMAKE_CXX_STANDARD 17)
 
 find_package(ECM REQUIRED NO_MODULE)
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
-- 
GitLab

