mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
jansson: Add patch for CMake 4+ compatibility
Fix: | CMake Error at CMakeLists.txt:1 (cmake_minimum_required): | Compatibility with CMake < 3.5 has been removed from CMake. | | Update the VERSION argument <min> value. Or, use the <min>...<max> syntax | to tell CMake that the project requires at least <min> but has been updated | to work with policies introduced by <max> or earlier. | | Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway. | | | -- Configuring incomplete, errors occurred! Signed-off-by: Alper Ak <alperyasinak1@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
|||||||
|
From 5d7b2ced666b4fbccd0da6e06d504ae2960575c8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alper Ak <alperyasinak1@gmail.com>
|
||||||
|
Date: Tue, 8 Jul 2025 14:54:08 +0300
|
||||||
|
Subject: [PATCH] cmake: Set minimum required version to 3.5 for CMake 4+
|
||||||
|
compatibility
|
||||||
|
|
||||||
|
| CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
|
||||||
|
| Compatibility with CMake < 3.5 has been removed from CMake.
|
||||||
|
|
|
||||||
|
| Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
|
||||||
|
| to tell CMake that the project requires at least <min> but has been updated
|
||||||
|
| to work with policies introduced by <max> or earlier.
|
||||||
|
|
|
||||||
|
| Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
|
||||||
|
|
|
||||||
|
|
|
||||||
|
| -- Configuring incomplete, errors occurred!
|
||||||
|
|
||||||
|
Upstream-Status: Backport [https://github.com/akheron/jansson/commit/96d160df90016066d04d493d1d69639474ba4f20]
|
||||||
|
|
||||||
|
Signed-off-by: Alper Ak <alperyasinak1@gmail.com>
|
||||||
|
---
|
||||||
|
CMakeLists.txt | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||||
|
index 72f9762..d07412e 100644
|
||||||
|
--- a/CMakeLists.txt
|
||||||
|
+++ b/CMakeLists.txt
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-cmake_minimum_required (VERSION 3.1)
|
||||||
|
+cmake_minimum_required (VERSION 3.5)
|
||||||
|
project(jansson C)
|
||||||
|
|
||||||
|
# Options
|
||||||
|
--
|
||||||
|
2.43.0
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=d9911525d4128bee234ee2d3ccaa2537"
|
|||||||
SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \
|
SRC_URI = "https://github.com/akheron/${BPN}/releases/download/v${PV}/${BP}.tar.bz2 \
|
||||||
file://0001-Honour-multilib-paths.patch \
|
file://0001-Honour-multilib-paths.patch \
|
||||||
file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \
|
file://0001-Only-export-symbols-starting-with-json_-and-jansson_.patch \
|
||||||
|
file://0002-allow-build-with-cmake-4.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "6bd82d3043dadbcd58daaf903d974891128d22aab7dada5d399cb39094af49ce"
|
SRC_URI[sha256sum] = "6bd82d3043dadbcd58daaf903d974891128d22aab7dada5d399cb39094af49ce"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user