diff --git a/CMakeLists.txt b/CMakeLists.txt
index 969d7718568514172804df80339b2515ff01a26a..797da1c6804393cb7a83e097a0fc3f3e8e56efa5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -125,10 +125,11 @@ add_subdirectory(DDRec)
 add_subdirectory(DDDetectors)
 add_subdirectory(DDCond)
 add_subdirectory(DDAlign)
-add_subdirectory(DDEve)
 if ( DD4HEP_USE_GEANT4 )
   add_subdirectory(DDG4)
 endif()
+# Note the order: DDEve partially depends on variables from DDG4!
+add_subdirectory(DDEve)
 
 dd4hep_enable_tests( DDTest )
 add_subdirectory(UtilityApps)