diff --git a/Control/RootUtils/CMakeLists.txt b/Control/RootUtils/CMakeLists.txt index 0bb8ca72952e1051be1f163085057c29b4a5f4ab..a3e11e0870e7e12ec5ce7642385d4e3e3bb43edf 100644 --- a/Control/RootUtils/CMakeLists.txt +++ b/Control/RootUtils/CMakeLists.txt @@ -9,6 +9,9 @@ find_package( Python COMPONENTS Development ) find_package( ROOT COMPONENTS RIO Hist Tree Core MathCore ROOTTPython cppyy${Python_VERSION_MAJOR}_${Python_VERSION_MINOR} ) +set( ROOT_LIBRARIES_PYROOT ${ROOT_LIBRARIES} ) +find_package( ROOT COMPONENTS RIO Hist Tree Core MathCore ) + # Component(s) in the package: atlas_generate_reflex_dictionary( dict_cpp RootUtils HEADER ${CMAKE_CURRENT_SOURCE_DIR}/RootUtils/RootUtilsDict.h @@ -28,7 +31,7 @@ atlas_add_library( RootUtilsPyROOT PUBLIC_HEADERS RootUtils INCLUDE_DIRS ${Python_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${ROOT_INCLUDE_DIRS} - LINK_LIBRARIES ${Python_LIBRARIES} ${Boost_LIBRARIES} ${ROOT_LIBRARIES} + LINK_LIBRARIES ${Python_LIBRARIES} ${Boost_LIBRARIES} ${ROOT_LIBRARIES_PYROOT} CxxUtils ) atlas_add_dictionary( RootUtilsPyROOTDict