meta-openembedded/meta-oe/recipes-devtools/json-schema-validator/json-schema-validator/0001-Set-Json_validator-Install-off-if-it-finds-it-via-li.patch
Parian Golchin 0697d52777 json-schema-validator: Updrade to 2.2.0
Upgrade and add important patches to the release

Signed-off-by: Parian Golchin <par.golchin@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-08-22 13:12:38 -07:00

30 lines
922 B
Diff

From 35939115142db6cd366ab11b29692a0179338ddf Mon Sep 17 00:00:00 2001
From: Parian Golchin <Parian.Golchin@iris-sensing.com>
Date: Fri, 18 Aug 2023 15:54:25 +0200
Subject: [PATCH 1/3] Set Json_validator Install off if it finds it via linking
Upstream-Status: Inappropriate [newer version of cmake in main branch]
Signed-off-by: Parian Golchin <Parian.Golchin@iris-sensing.com>
---
CMakeLists.txt | 3 +++
1 file changed, 3 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f636734..9e4587f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,6 +55,9 @@ option(JSON_VALIDATOR_BUILD_EXAMPLES "Build examples" ${JSON_VALIDATOR_IS_TOP_LE
if(NOT TARGET nlohmann_json::nlohmann_json)
find_package(nlohmann_json REQUIRED)
+else()
+ message(STATUS "Found nlohmann_json::nlohmann_json-target - linking with it")
+ set(JSON_VALIDATOR_INSTALL OFF)
endif()
target_link_libraries(
--
2.25.1