Skip to content

Commit

Permalink
Find DD4hep before Gaudi to avoid python version clashes
Browse files Browse the repository at this point in the history
DD4hep has to be found pretty much first for CMake because it is the one
that requires an exact version of python. However, if anything
else (e.g. Boost via Gaudi) finds another version of python (typically a
newer one from the underlying system) then this version will be cached
and the check in the DD4hep cmake configuration will fail.
  • Loading branch information
tmadlener committed Nov 19, 2024
1 parent 6ec424d commit 90d2fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ set(PACKAGE_VERSION "${PACKAGE_VERSION_MAJOR}.${PACKAGE_VERSION_MINOR}.${PACKAGE
SET(CMAKE_CXX_FLAGS "-fPIC -Wall -Wextra -Wpedantic ${CMAKE_CXX_FLAGS}")

find_package(EDM4HEP REQUIRED)
find_package(DD4hep REQUIRED)
find_package(Gaudi REQUIRED)
find_package(k4FWCore REQUIRED)
find_package(DD4hep REQUIRED)
find_package(ROOT REQUIRED COMPONENTS RIO Tree)
find_package(k4SimGeant4 REQUIRED)

Expand Down

0 comments on commit 90d2fdf

Please sign in to comment.