[openwrt/openwrt] libevent2: adjust for cmake 4.x compatibility

LEDE Commits lede-commits at lists.infradead.org
Tue Nov 4 06:15:07 PST 2025


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/261275c72c8374495c149106c274a5931775f04f

commit 261275c72c8374495c149106c274a5931775f04f
Author: Hannu Nyman <hannu.nyman at iki.fi>
AuthorDate: Tue Oct 7 18:30:01 2025 +0300

    libevent2: adjust for cmake 4.x compatibility
    
    Patch CMakeLists.txt for cmake 4.x compatibility.
    New cmake versions require at least 3.5 as 'cmake_minimum_required'
    in CMakeLists.txt. In future 3.10 will be required.
    
    Signed-off-by: Hannu Nyman <hannu.nyman at iki.fi>
    Link: https://github.com/openwrt/openwrt/pull/20265
    Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
 package/libs/libevent2/patches/002-cmake4.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/libs/libevent2/patches/002-cmake4.patch b/package/libs/libevent2/patches/002-cmake4.patch
new file mode 100644
index 0000000000..3365033aa9
--- /dev/null
+++ b/package/libs/libevent2/patches/002-cmake4.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -19,7 +19,7 @@
+ #       start libevent.sln
+ #
+ 
+-cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
++cmake_minimum_required(VERSION 3.10)
+ 
+ if (POLICY CMP0054)
+     cmake_policy(SET CMP0054 NEW)




More information about the lede-commits mailing list