From 42f07f4b561a23ed29a5508fe29a3312a390e480 Mon Sep 17 00:00:00 2001
From: Wouter Deconinck <wdconinc@gmail.com>
Date: Thu, 17 Aug 2023 19:52:46 -0500
Subject: [PATCH] fix: remove unneeded DDG4 and DDG4IO dependency

---
 CMakeLists.txt                | 2 +-
 JugBase/CMakeLists.txt        | 2 +-
 JugReco/JugReco/SourceLinks.h | 1 -
 3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aea08c9d..cfd1ceba 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ add_definitions("-Dpodio_VERSION_MINOR=${podio_VERSION_MINOR}")
 add_definitions("-Dpodio_VERSION_PATCH=${podio_VERSION_PATCH}")
 
 find_package(ROOT COMPONENTS Core RIO Tree MathCore GenVector Geom REQUIRED)
-find_package(DD4hep COMPONENTS DDG4 DDG4IO DDRec REQUIRED)
+find_package(DD4hep COMPONENTS DDRec REQUIRED)
 
 find_package(Acts REQUIRED COMPONENTS Core PluginIdentification PluginTGeo PluginDD4hep PluginJson)
 set(Acts_VERSION_MIN "20.2.0")
diff --git a/JugBase/CMakeLists.txt b/JugBase/CMakeLists.txt
index 354bfea9..dd89c322 100644
--- a/JugBase/CMakeLists.txt
+++ b/JugBase/CMakeLists.txt
@@ -17,7 +17,7 @@ gaudi_add_library(JugBase
   Gaudi::GaudiKernel Gaudi::GaudiAlgLib
   podio::podioRootIO
   ROOT::Core ROOT::RIO ROOT::Tree
-  DD4hep::DDG4IO DD4hep::DDRec
+  DD4hep::DDRec
   ActsCore ActsPluginDD4hep
 )
 
diff --git a/JugReco/JugReco/SourceLinks.h b/JugReco/JugReco/SourceLinks.h
index 85ebb2de..300b51a9 100644
--- a/JugReco/JugReco/SourceLinks.h
+++ b/JugReco/JugReco/SourceLinks.h
@@ -8,7 +8,6 @@
 
 #include <stdexcept>
 #include <string>
-#include "edm4hep/Geant4Particle.h"
 
 #include "edm4eic/TrackerHitCollection.h"
 
-- 
GitLab