]> git.feebdaed.xyz Git - 0xmirror/buildroot.git/commitdiff
package/musepack: fix build with CMake 4
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 16 Dec 2025 09:34:46 +0000 (10:34 +0100)
committerJulien Olivain <ju.o@free.fr>
Sat, 27 Dec 2025 11:00:15 +0000 (12:00 +0100)
No autobuilder issues, as this problem was hidden by the libcuefile
CMake 4 build issue.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
package/musepack/0007-CMakeLists.txt-fix-compatibility-with-CMake-4.patch [new file with mode: 0644]

diff --git a/package/musepack/0007-CMakeLists.txt-fix-compatibility-with-CMake-4.patch b/package/musepack/0007-CMakeLists.txt-fix-compatibility-with-CMake-4.patch
new file mode 100644 (file)
index 0000000..ed8988a
--- /dev/null
@@ -0,0 +1,35 @@
+From 72267961bc3dafecdd6ce1d5bbdffaa6f7120004 Mon Sep 17 00:00:00 2001
+From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
+Date: Tue, 16 Dec 2025 10:32:58 +0100
+Subject: [PATCH] CMakeLists.txt: 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.
+
+Upstream: N/A, dead
+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 b13f78c..0764198 100755
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
++CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+ cmake_policy(SET CMP0003 NEW)
+ include(TestBigEndian)
+-- 
+2.52.0
+