From dcd241d0f7447272b10a4ccd7c07baa5629d8179 Mon Sep 17 00:00:00 2001 From: Jonas Hahnfeld Date: Thu, 20 Feb 2025 11:29:57 +0100 Subject: [PATCH] Link against Geant4::G4physicslists G4HepEmTrackingManager.cc now includes G4GammaGeneralProcess.hh, which is part of the G4physicslists library. This fixes the compilation with a build directory of Geant4 (non-installed). --- G4HepEm/G4HepEm/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/G4HepEm/G4HepEm/CMakeLists.txt b/G4HepEm/G4HepEm/CMakeLists.txt index 94c5eb3..5ce4cb9 100644 --- a/G4HepEm/G4HepEm/CMakeLists.txt +++ b/G4HepEm/G4HepEm/CMakeLists.txt @@ -28,6 +28,7 @@ if(Geant4_VERSION VERSION_GREATER_EQUAL 11.0) set(G4HEPEM_Geant4_LIBRARIES ${G4HEPEM_Geant4_LIBRARIES} Geant4::G4event + Geant4::G4physicslists Geant4::G4tracking ) endif()