new file mode 100644
@@ -0,0 +1,70 @@
+From 6fe59ca50dfd65bdb3d1c87a27245b2dd1a072f9 Mon Sep 17 00:00:00 2001
+From: Rudi Heitbaum <rudi@heitbaum.com>
+Date: Fri, 28 Mar 2025 09:31:40 +0000
+Subject: [PATCH] Allow build with CMake 4.0.0
+
+fixes deprecated cmake option and uses cmake 2.8.0 TARGET_FILE
+update cmake supported minimum versions to 2.8.0...3.10
+
+ref:
+- https://cmake.org/cmake/help/latest/policy/CMP0026.html
+
+CMake Error at .../CMakeLists.txt: (GET_TARGET_PROPERTY):
+ The LOCATION property may not be read from target "json_...". Use the
+ target name directly with add_custom_command, or use the generator
+ expression $<TARGET_FILE>, as appropriate.
+
+Upstream: https://github.com/lloyd/yajl/pull/256
+
+Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com>
+[Titouan: fix merge conflict with 0003-Link-with-shared-libyajl-in-a-shared-build]
+Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
+---
+ CMakeLists.txt | 2 +-
+ reformatter/CMakeLists.txt | 4 +---
+ verify/CMakeLists.txt | 4 +---
+ 3 files changed, 3 insertions(+), 7 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4c0a9be..e7031c8 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -12,7 +12,7 @@
+ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
++CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0...3.10)
+
+ PROJECT(YetAnotherJSONParser C)
+
+diff --git a/reformatter/CMakeLists.txt b/reformatter/CMakeLists.txt
+index 7629094..5e7d3f1 100644
+--- a/reformatter/CMakeLists.txt
++++ b/reformatter/CMakeLists.txt
+@@ -39,9 +39,7 @@ IF (NOT WIN32)
+ ENDIF (NOT WIN32)
+
+ # copy the binary into the output directory
+-GET_TARGET_PROPERTY(binPath json_reformat LOCATION)
+-
+ ADD_CUSTOM_COMMAND(TARGET json_reformat POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir})
++ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:json_reformat> ${binDir})
+
+ INSTALL(TARGETS json_reformat RUNTIME DESTINATION bin)
+diff --git a/verify/CMakeLists.txt b/verify/CMakeLists.txt
+index 06cb2dc..63c7e09 100644
+--- a/verify/CMakeLists.txt
++++ b/verify/CMakeLists.txt
+@@ -33,9 +33,7 @@ ELSE()
+ ENDIF()
+
+ # copy in the binary
+-GET_TARGET_PROPERTY(binPath json_verify LOCATION)
+-
+ ADD_CUSTOM_COMMAND(TARGET json_verify POST_BUILD
+- COMMAND ${CMAKE_COMMAND} -E copy_if_different ${binPath} ${binDir})
++ COMMAND ${CMAKE_COMMAND} -E copy_if_different $<TARGET_FILE:json_verify> ${binDir})
+
+ INSTALL(TARGETS json_verify RUNTIME DESTINATION bin)
Signed-off-by: Titouan Christophe <titouan.christophe@mind.be> --- .../yajl/0005-Allow-build-with-cmake4.patch | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 package/yajl/0005-Allow-build-with-cmake4.patch