zlog: add cmake 4.x compatibility
authorTianling Shen <[email protected]>
Sat, 15 Nov 2025 10:00:03 +0000 (18:00 +0800)
committerHannu Nyman <[email protected]>
Sat, 15 Nov 2025 12:03:59 +0000 (14:03 +0200)
Upstream backport.

Signed-off-by: Tianling Shen <[email protected]>
libs/zlog/patches/011-upgrade-cmake-minimum-version.patch [new file with mode: 0644]

diff --git a/libs/zlog/patches/011-upgrade-cmake-minimum-version.patch b/libs/zlog/patches/011-upgrade-cmake-minimum-version.patch
new file mode 100644 (file)
index 0000000..43349ec
--- /dev/null
@@ -0,0 +1,20 @@
+From 3715879775f725260aeda14f94887bbc7a007e29 Mon Sep 17 00:00:00 2001
+From: haydenZhou <[email protected]>
+Date: Sun, 8 Jun 2025 10:45:05 +0800
+Subject: [PATCH] upgrade cmake minimum version
+
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
+ # create by lsm <[email protected]>
+ # cmake
+-cmake_minimum_required(VERSION 2.8.5)
++cmake_minimum_required(VERSION 3.12)
+ message(STATUS "path : ${CMAKE_FIND_ROOT_PATH}")
+ project(zlog)