diff --git a/src/detectors/CMakeLists.txt b/src/detectors/CMakeLists.txt
index fa2099aeeec2c60b49aea530309f577cc83918d3..c4eaf7a719135372978cb076399087e427eb8ee4 100644
--- a/src/detectors/CMakeLists.txt
+++ b/src/detectors/CMakeLists.txt
@@ -60,7 +60,7 @@ dd4hep_add_plugin(GenDetectors
         pid/src/HexagonalScintPreShower_geo.cpp
         pid/src/ThresholdGasCherenkov_geo.cpp
         pid/src/HeavyGasCherenkov_geo.cpp
-        USES ActsCore ActsPluginDD4hep
+        USES DD4hep::DDCore DD4hep::DDG4 ActsCore ActsPluginDD4hep
         NOINSTALL
     )