Skip to content

Commit

Permalink
Find nlohmann_json downstream if EDM4hep has support
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Oct 23, 2024
1 parent 22e85d7 commit 3a4ef70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/EDM4HEPConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3a4ef70

Please sign in to comment.