From a8c1b8eba949548f78ec1654bcdad2b0fbe91818 Mon Sep 17 00:00:00 2001 From: Jiri Vlasak Date: Tue, 14 Mar 2023 16:40:51 +0100 Subject: [PATCH] Find json lib when not yet found --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 574c6e7..e767f08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,7 +23,9 @@ endif() link_libraries(bcar) link_libraries(pslot) -find_package(jsoncpp REQUIRED) +if (NOT TARGET "JsonCpp::JsonCpp") + find_package(jsoncpp REQUIRED) +endif () link_libraries(jsoncpp_lib) add_library(rrts STATIC -- 2.39.2