Skip to contentSkip to conversation

package/cppdb: fix compatibility with CMake 4

PATCH In review Thomas Petazzoni via buildroot 1 participant 2 messages Dec 17, 2025 – Dec 27, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <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.

---
If people prefer to drop this package, it would be totally fine for me.

---
 ...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
package/cppdb/0002-CMakeLists.txt-fix-compatibility-with-CMake-4.patch new file +24 -0
new file mode 100644
index 0000000000..3bba81f563
@@ -0,0 +1,24 @@
+From 27003c60a05dd3921538323a53b1650e289cba8c Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <[email protected]>
+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 <[email protected]>
+---
+ 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
+
Signature · 6 lines
2.52.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 17 lines · Thomas Petazzoni via buildroot

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/.

Quoted 6 lines

There are no known autobuilder failures for this issue.

---
If people prefer to drop this package, it would be totally fine for me.

Since you took time to send this patch, I applied it on master. But we will certainly remove this package soon.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot