From 1b942e65ab16d98e68f39fe107c7421d2ccc9f3b Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sat, 29 Nov 2025 20:04:33 +0100
Subject: [PATCH] Raise minimum CMake version to 3.16

CMake 3.31 warns about compat. for <3.10 being removed in the future.
3.16 aligns with most of ECM revdeps while some ECM modules already
warn about using <3.16 minimum.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
 CMakeLists.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2cf9cc6..728e507 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -3,7 +3,7 @@
 # SPDX-FileCopyrightText: (C) 2018 Luigi Toscano <luigi.toscano@tiscali.it>
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.16)
 
 project(Basket VERSION 2.49.90)
 
@@ -22,8 +22,6 @@ option(DEBUG_PIPE "Enabled Named Debugging Pipe" OFF)
 # do we use a GNU compiler?
 if(CMAKE_COMPILER_IS_GNUCXX)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  -fno-delete-null-pointer-checks")
-    # TODO: after removing kdelibs4support this could also be removed
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
 endif()
 
 set(CMAKE_CXX_STANDARD 17)
-- 
2.52.0

