Skip to content

Commit

Permalink
CMake: explicitly ask for ROOTEve component
Browse files Browse the repository at this point in the history
ROOT no longer finds nlohmann_json unless we ask for the ROOTEve
component, so we ask for the ROOTEve component if the ROOTEve
component exists.  DDEve and one executable in UtilityApps depend on
this
  • Loading branch information
andresailer committed Oct 18, 2024
1 parent e105389 commit d205ba3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ dd4hep_configure_output( OUTPUT "${PROJECT_BINARY_DIR}" INSTALL "${CMAKE_INSTALL
# Configure ROOT
find_package (ROOT 6.08 REQUIRED CONFIG)
DD4HEP_SETUP_ROOT_TARGETS()
# ROOT no longer finds nlohmann_json unless we ask for the ROOTEve component, so we ask
# for the ROOTEve component if the ROOTEve component exists.
# DDEve and one executable in UtilityApps depend on this
if(TARGET ROOT::ROOTEve)
find_package (ROOT REQUIRED COMPONENTS ROOTEve CONFIG)
endif()

# Configure BOOST
find_package(Boost 1.49 REQUIRED)
Expand Down

0 comments on commit d205ba3

Please sign in to comment.