diff --git a/detectors.yaml b/detectors.yaml
index 43641b72b812049739d4b4cfa08f14092af0be1a..f3d31520cadb73baad2d931ad07fd1e04b1190dd 100644
--- a/detectors.yaml
+++ b/detectors.yaml
@@ -15,31 +15,39 @@ detectors:
       version: 22.12.0
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.01.0:
       version: 23.01.0
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.03.0:
       version: 23.03.0
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.05.0:
       version: 23.05.0
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.05.1:
       version: 23.05.1
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.05.2:
       version: 23.05.2
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.06.0:
       version: 23.06.0
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type
     23.06.1:
       version: 23.06.1
       patches:
       - https://github.com/eic/epic/pull/449.patch
+      cxxflags: -DDD4HEP_FIELD_TYPE_OVERRIDE=field_type