package/gli: add patch to fix CMake 4 build
PATCH 1/1 package/gli: add patch to fix CMake 4 build
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.
Fixes:
https://autobuild.buildroot.net/results/30c1645d04b9d2b581aa7a866aa19c4001538e17/
--- ...ump-CMake-minimum-required-version-f.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 package/gli/0001-CMakeLists.txt-bump-CMake-minimum-required-version-f.patch
package/gli/0001-CMakeLists.txt-bump-CMake-minimum-required-version-f.patch new file +39 -0
@@ -0,0 +1,39 @@ +From 69a4897efca9c1c8546872d021b57d9e12764441 Mon Sep 17 00:00:00 2001 +From: Thomas Petazzoni <[email protected]> +Date: Fri, 26 Dec 2025 18:08:35 +0100 +Subject: [PATCH] CMakeLists.txt: bump CMake minimum required version for CMake + 4 compliance + +CMake 4 will refuse to build if the cmake_minimum_required() version +is not at least 3.5: + +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. + +So bump the required CMake version accordingly. + +Upstream: https://github.com/g-truc/gli/pull/196 +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 6f70f493..b705dbaf 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 3.1 FATAL_ERROR) ++cmake_minimum_required(VERSION 3.5 FATAL_ERROR) + cmake_policy(SET CMP0054 NEW) + + project(gli) +-- +2.52.0 +
Signature · 6 lines
2.52.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 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.
Quoted 8 lines
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
Fixes:
https://autobuild.buildroot.net/results/30c1645d04b9d2b581aa7a866aa19c4001538e17/
Signed-off-by Thomas Petazzoni <[email protected]>
Applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot