From 3a4ef70a7fb97b051a4be93e27c8e465217b3263 Mon Sep 17 00:00:00 2001 From: Thomas Madlener Date: Wed, 23 Oct 2024 15:13:06 +0200 Subject: [PATCH] Find nlohmann_json downstream if EDM4hep has support --- cmake/EDM4HEPConfig.cmake.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/EDM4HEPConfig.cmake.in b/cmake/EDM4HEPConfig.cmake.in index 7bf6d54f2..2a68686e2 100644 --- a/cmake/EDM4HEPConfig.cmake.in +++ b/cmake/EDM4HEPConfig.cmake.in @@ -14,6 +14,11 @@ set_and_check(EDM4HEP_DATA_DIR "@PACKAGE_CMAKE_INSTALL_DATADIR@/edm4hep") include(CMakeFindDependencyMacro) find_dependency(podio REQUIRED) +set(EDM4HEP_WITH_JSON @nlohmann_json_FOUND@) +if (EDM4HEP_WITH_JSON) + find_dependency(nlohmann_json 3.10.5 REQUIRED) +endif() + # - Include the targets file to create the imported targets that a client can # link to (libraries) or execute (programs) include("${CMAKE_CURRENT_LIST_DIR}/EDM4HEPTargets.cmake")