From 42a8ef64d41d5b8d7220cd614b0165211f7cf599 Mon Sep 17 00:00:00 2001 From: Florian Uhlig Date: Wed, 15 Dec 2021 09:43:19 +0100 Subject: [PATCH] Add library dependency needed on macosx12 On macosx12 the dynamic linker at runtime needs the additional library, otherwise macros using libgeant321 will crash. --- cmake/modules/FindROOT.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindROOT.cmake b/cmake/modules/FindROOT.cmake index 4b14b62fc9..bcba8db2a6 100644 --- a/cmake/modules/FindROOT.cmake +++ b/cmake/modules/FindROOT.cmake @@ -175,7 +175,7 @@ If(ROOT_FOUND) Include(ROOTMacros) # Aliases for imported VMC packages ROOT dependencies - foreach(_root_dep VMC Core RIO Tree Rint Physics MathCore Thread Geom EG) + foreach(_root_dep VMC Core RIO Tree Rint Physics MathCore Thread Geom EG EGPythia6) find_library(${_root_dep}_LIB ${_root_dep} PATHS ${ROOT_LIBRARY_DIR}) if(${_root_dep}_LIB) add_library(${_root_dep} SHARED IMPORTED GLOBAL)