From 5eb9f8aee52c8dc9355f0ab096df9e56e9459f46 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Wed, 17 Dec 2025 23:33:16 +0100 Subject: [PATCH] package/cppdb: fix compatibility with CMake 4 Fixes: CMake Error at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 has been removed from CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. We didn't submit the patch upstream, because contrary to cppcms, cppdb seems completely dead. Last commit is from 2012 at https://sourceforge.net/p/cppcms/code/HEAD/tree/cppdb/. There are no known autobuilder failures for this issue. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- ...s.txt-fix-compatibility-with-CMake-4.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch diff --git a/package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch b/package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch new file mode 100644 index 0000000000..3bba81f563 --- /dev/null +++ b/package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch @@ -0,0 +1,24 @@ +From 27003c60a05dd3921538323a53b1650e289cba8c Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni +Date: Wed, 17 Dec 2025 22:27:33 +0100 +Subject: [PATCH] CMakeLists.txt: fix compatibility with CMake 4 + +Upstream: N/A, dead upstream +Signed-off-by: Thomas Petazzoni +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5e81b09..32ff3a6 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.6) ++cmake_minimum_required(VERSION 3.5) + project(cppdb) + + set(CPPDB_MAJOR 0) +-- +2.52.0 +