diff --git a/cmake/Modules/LauraExternalDependencies.cmake b/cmake/Modules/LauraExternalDependencies.cmake index e0a7527..ac62c81 100644 --- a/cmake/Modules/LauraExternalDependencies.cmake +++ b/cmake/Modules/LauraExternalDependencies.cmake @@ -1,32 +1,32 @@ # Laura++ needs ROOT, we just require that it is a version that exports CMake targets properly # We may depend on other things in the future, e.g. JSON or YAML for easier configuration of particle properties etc. if(DEFINED ENV{ROOTSYS}) list(APPEND CMAKE_PREFIX_PATH $ENV{ROOTSYS}) endif() if(LAURA_BUILD_ROOFIT_TASK) find_package(ROOT 6.14 REQUIRED COMPONENTS EG RooFitCore RooFit) else() - find_package(ROOT 6.14 REQUIRED COMPONENTS EG) + find_package(ROOT 6.14 REQUIRED COMPONENTS EG RooFitCore) endif() #message(STATUS "ROOT include directories: ${ROOT_INCLUDE_DIRS}") #message(STATUS "ROOT libraries: ${ROOT_LIBRARIES}") #message(STATUS "ROOT definitions: ${ROOT_DEFINITIONS}") #message(STATUS "ROOT CXX flags: ${ROOT_CXX_FLAGS}") #message(STATUS "ROOT CC flags: ${ROOT_CC_FLAGS}") #message(STATUS "ROOT use file: ${ROOT_USE_FILE}") # Don't want to do this because it uses old-style CMake #include(${ROOT_USE_FILE}) if(EXISTS "${ROOT_DIR}/RootMacros.cmake") message(STATUS "Laura++: Including ROOT macros module: ${ROOT_DIR}/RootMacros.cmake") include(${ROOT_DIR}/RootMacros.cmake) elseif(EXISTS "${ROOT_DIR}/modules/RootNewMacros.cmake") message(STATUS "Laura++: Including ROOT macros module: ${ROOT_DIR}/modules/RootNewMacros.cmake") include(${ROOT_DIR}/modules/RootNewMacros.cmake) else() message(WARNING "Laura++: Cannot locate ROOT macros module in ${ROOT_DIR}") endif()