diff --git a/examples/DDDigi/CMakeLists.txt b/examples/DDDigi/CMakeLists.txt
index 4211aafed8dcb3f6ef29745772ab0b2e21e0d3f9..3e0f6324323daad06cd5dd1ab3193e08af579ab9 100644
--- a/examples/DDDigi/CMakeLists.txt
+++ b/examples/DDDigi/CMakeLists.txt
@@ -17,6 +17,11 @@ IF(NOT TARGET DD4hep::DDCore)
   dd4hep_configure_output()
 ENDIF()
 
+IF(NOT TARGET DD4hep::DDDigi)
+  MESSAGE(STATUS "+++> DDDigi examples shall not be built! [DDDigi not enabled]")
+  return()
+ENDIF()
+
 dd4hep_set_compiler_flags()
 dd4hep_use_python_executable()
 #==========================================================================