From ec931b087e5aac525cce5b5a34a037c8a444968f Mon Sep 17 00:00:00 2001 From: Florian Uhlig <f.uhlig@gsi.de> Date: Wed, 16 Nov 2022 11:16:22 +0100 Subject: [PATCH] Include FairRootTargets in FindFairRoot --- CMakeLists.txt | 1 - cmake/modules/FindFairRoot.cmake | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 581b0905fc..f7ee39a298 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,6 @@ if(VMC_FOUND) endif() #Searches for FairROOT Package -include(FairRootTargets) find_package(FairRoot REQUIRED) if(FAIRROOT_FOUND) list(APPEND packages FairRoot) diff --git a/cmake/modules/FindFairRoot.cmake b/cmake/modules/FindFairRoot.cmake index b0e43fa155..d67687216a 100644 --- a/cmake/modules/FindFairRoot.cmake +++ b/cmake/modules/FindFairRoot.cmake @@ -64,4 +64,5 @@ else(FAIRROOT_INCLUDE_DIR AND FAIRROOT_LIBRARY_DIR) MESSAGE(FATAL_ERROR "FairRoot installation not found") endif (FAIRROOT_INCLUDE_DIR AND FAIRROOT_LIBRARY_DIR) +include(FairRootTargets) define_fairroot_targets() -- GitLab