]> git.feebdaed.xyz Git - 0xmirror/buildroot.git/commitdiff
package/cppdb: fix compatibility with CMake 4
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Wed, 17 Dec 2025 22:33:16 +0000 (23:33 +0100)
committerJulien Olivain <ju.o@free.fr>
Sat, 27 Dec 2025 11:14:29 +0000 (12:14 +0100)
Fixes:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> 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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch [new file with mode: 0644]

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 (file)
index 0000000..3bba81f
--- /dev/null
@@ -0,0 +1,24 @@
+From 27003c60a05dd3921538323a53b1650e289cba8c Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+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 <thomas.petazzoni@bootlin.com>
+---
+ 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
+