diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0707d3605ab98a7598cfcec3df9e6d274b8700b5..67a43c0b082438133d362777a52292158a884d17 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,10 @@ endif()
 if(DD4HEP_WITH_GEANT4)
    add_subdirectory(DDExamples/CLICSiDSimu)
 endif()
-#   add_subdirectory(DDExamples/ILDExSimu)
+
+if(DD4HEP_WITH_GEANT4 AND DD4HEP_WITH_LCIO)
+   add_subdirectory(DDExamples/ILDExSimu)
+endif()
 
 #---Configuration-------------------------------------------------------------------
 configure_file(cmake/thisdd4hep.csh thisdd4hep.csh @ONLY)