tools/liblzo: add cmake 4.x compatibility
authorHannu Nyman <[email protected]>
Tue, 7 Oct 2025 15:30:01 +0000 (18:30 +0300)
committerChristian Marangi <[email protected]>
Tue, 4 Nov 2025 14:14:53 +0000 (15:14 +0100)
Patch CMakeLists.txt to fulfill cmake 4.0 requirements
of cmake_minimum_required being at least 3.5 and in future 3.10.

Signed-off-by: Hannu Nyman <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20265
Signed-off-by: Christian Marangi <[email protected]>
tools/liblzo/patches/002-cmake-4.0-compatibility.patch [new file with mode: 0644]

diff --git a/tools/liblzo/patches/002-cmake-4.0-compatibility.patch b/tools/liblzo/patches/002-cmake-4.0-compatibility.patch
new file mode 100644 (file)
index 0000000..90b551a
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -8,7 +8,7 @@
+ # All Rights Reserved.
+ #
+-cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.10)
+ #
+ # simple usage example (Unix):