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

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


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/914eb430eda3e891723c1ec4b595dcc3b9399c24

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

    jansson: adjust for cmake 4.x compatibility
    
    Patch CMakeLists.txt in selected apps 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/jansson/patches/001-cmake-ver.patch | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/libs/jansson/patches/001-cmake-ver.patch b/package/libs/jansson/patches/001-cmake-ver.patch
new file mode 100644
index 0000000000..59ed1cc44d
--- /dev/null
+++ b/package/libs/jansson/patches/001-cmake-ver.patch
@@ -0,0 +1,8 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required (VERSION 3.1)
++cmake_minimum_required (VERSION 3.10)
+ project(jansson C)
+ 
+ # Options




More information about the lede-commits mailing list