Skip to contentSkip to conversation

package/bcg729: fix cmake 4 compatibility

PATCH New Bernd Kuhls 1 participant 1 message May 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/bcg729: fix cmake 4 compatibility

Backport a patch fixing cmake 4 compatibility.

Fixes:
https://autobuild.buildroot.net/results/118/118349d20eae2dccdadab949065f6bc6471c825e/

---
 ...Update-cmake_minimum_required-to-3.5.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/bcg729/0001-Update-cmake_minimum_required-to-3.5.patch
package/bcg729/0001-Update-cmake_minimum_required-to-3.5.patch new file +41 -0
new file mode 100644
index 0000000000..fc744acd90
@@ -0,0 +1,41 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <[email protected]>
+Date: Tue, 20 May 2025 07:10:26 +0200
+Subject: [PATCH] Update cmake_minimum_required to 3.5
+
+This supports compilation with cmake-4.0.0.
+
+Fixes:
+CMake Error at CMakeLists.txt:23 (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.
+
+Upstream: https://github.com/BelledonneCommunications/bcg729/pull/20
+
+Signed-off-by: Bernd Kuhls <[email protected]>
+[Bernd: backported to version 1.1.1]
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6c40d55..7c722de 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -20,7 +20,7 @@
+ #
+ ############################################################################
+ 
+-cmake_minimum_required(VERSION 3.1)
++cmake_minimum_required(VERSION 3.5)
+ project(bcg729 VERSION 1.1.1 LANGUAGES C)
+ 
+ 
+-- 
+2.39.5
+
Signature · 6 lines
2.39.5

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