From 48cf8ab8b101e87ffe20b51e8a82757ea9ccb356 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Wed, 3 Dec 2025 22:47:01 +0100 Subject: [PATCH] package/libmodplug: fix cmake 4 compatibility Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain --- .../0002-Fix-build-with-cmake-4.patch | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 package/libmodplug/0002-Fix-build-with-cmake-4.patch diff --git a/package/libmodplug/0002-Fix-build-with-cmake-4.patch b/package/libmodplug/0002-Fix-build-with-cmake-4.patch new file mode 100644 index 0000000000..7c75d510c2 --- /dev/null +++ b/package/libmodplug/0002-Fix-build-with-cmake-4.patch @@ -0,0 +1,36 @@ +From a133c89548383f88fe0d0da618ef3c06c7f08f22 Mon Sep 17 00:00:00 2001 +From: Bernd Kuhls +Date: Tue, 2 Dec 2025 18:00:15 +0100 +Subject: [PATCH] Fix build with cmake 4 + +Fixes build error with cmake 4.20: + +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. + +Upstream: https://github.com/Konstanty/libmodplug/pull/101 + +Signed-off-by: Bernd Kuhls +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d9fd20d..9f9c94f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.12) ++cmake_minimum_required(VERSION 3.12) + + project(libmodplug) + +-- +2.47.3 +