]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
jansson: adjust for cmake 4.x compatibility
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 7 Oct 2025 15:30:01 +0000 (18:30 +0300)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 4 Nov 2025 14:14:54 +0000 (15:14 +0100)
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@iki.fi>
Link: https://github.com/openwrt/openwrt/pull/20265
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/libs/jansson/patches/001-cmake-ver.patch [new file with mode: 0644]

diff --git a/package/libs/jansson/patches/001-cmake-ver.patch b/package/libs/jansson/patches/001-cmake-ver.patch
new file mode 100644 (file)
index 0000000..59ed1cc
--- /dev/null
@@ -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