From: Hannu Nyman Date: Tue, 7 Oct 2025 15:30:01 +0000 (+0300) Subject: libevent2: adjust for cmake 4.x compatibility X-Git-Tag: v25.12.0-rc1~687 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=261275c72c8374495c149106c274a5931775f04f;p=thirdparty%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/20265 Signed-off-by: Christian Marangi --- diff --git a/package/libs/libevent2/patches/002-cmake4.patch b/package/libs/libevent2/patches/002-cmake4.patch new file mode 100644 index 00000000000..3365033aa93 --- /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)