From 7b03f6c8b6f84d4a8195b9a71c3a6eb52895aa1b Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 7 Jan 2021 16:29:49 +0100
Subject: [PATCH] USE DDCore for DEBUG flag

---
 DDCore/CMakeLists.txt | 8 ++++----
 DDG4/CMakeLists.txt   | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/DDCore/CMakeLists.txt b/DDCore/CMakeLists.txt
index a3ded85e8..d351cf638 100644
--- a/DDCore/CMakeLists.txt
+++ b/DDCore/CMakeLists.txt
@@ -40,26 +40,26 @@ dd4hep_add_dictionary( G__DD4hep
   include/XML/tinystring.h
   ${EXCLUDE_HEADER}
   LINKDEF include/ROOT/LinkDef.h
-  USES DDParsers ${XML_LIBRARIES} ${TBB_IMPORTED_TARGETS}
+  USES DDCore DDParsers ${XML_LIBRARIES} ${TBB_IMPORTED_TARGETS}
   DEFINITIONS DD4HEP_MUST_USE_DETECTORIMP_H
   )
 
 dd4hep_add_dictionary( G__DD4hepGeo
   SOURCES include/ROOT/Warnings.h src/GeoDictionary.h
   LINKDEF include/ROOT/LinkDef.h
-  USES DDParsers ${XML_LIBRARIES}
+  USES DDCore DDParsers ${XML_LIBRARIES}
   )
 
 dd4hep_add_dictionary( G__DD4hepProperties
   SOURCES include/ROOT/Warnings.h src/PropertyDictionary.h
   LINKDEF include/ROOT/LinkDef.h
-  USES DDParsers ${XML_LIBRARIES}
+  USES DDCore DDParsers ${XML_LIBRARIES}
   )
 
 dd4hep_add_dictionary( G__DD4hepSegmentations
   SOURCES include/ROOT/Warnings.h src/SegmentationDictionary.h
   LINKDEF include/ROOT/LinkDef.h
-  USES DDParsers ${XML_LIBRARIES}
+  USES DDCore DDParsers ${XML_LIBRARIES}
   )
 
 if(TARGET Boost::boost)
diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index d52362e38..9fdb47e48 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -57,7 +57,7 @@ if(TARGET Python::Python AND TARGET ${DD4HEP_ROOT_PYTHON})
     )
   dd4hep_add_dictionary(G__DDPython
     SOURCES  tpython/DDPython.C
-    USES     Python::Python
+    USES     DD4hep::DDCore Python::Python
     )
   #---------------------------  Specialized python plugins  --------------------------
   dd4hep_print("|++> ROOT Has Python, creating DDPython library and plugins")
-- 
GitLab