diff --git a/CMakeLists.txt b/CMakeLists.txt
index f447168b9c930d3416ceb1b8b09c1b446a4ec3b7..76936694e4d8c43ea5dacd7aefd43a2b6c9dec3c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,7 +118,7 @@ add_subdirectory(DDDetectors)
 if(DD4HEP_USE_GEANT4)
 
   #--- create a geant4 variables for the thisdd4hep.sh script
-  find_package( Geant4 REQUIRED  gdml ui_all vis_all)
+  find_package( Geant4 9.6 REQUIRED  gdml ui_all vis_all)
 
   include(${Geant4_USE_FILE})   # this also takes care of geant 4 definitions and include dirs
 
diff --git a/DDG4/plugins/Geant4PhysicsConstructors.cpp b/DDG4/plugins/Geant4PhysicsConstructors.cpp
index 9731cbfe31e074cb0067aa1e2efcef4d676f62fe..d39e21a21dd30be45e9ca66c1cd8f3d2b5010fec 100644
--- a/DDG4/plugins/Geant4PhysicsConstructors.cpp
+++ b/DDG4/plugins/Geant4PhysicsConstructors.cpp
@@ -36,5 +36,5 @@
   #include "Geant4.10.PhysicsConstructors.h"
 // ==================================================================================
 #else
-  #pragma error "Unsupported Geant4 version "
+  #error "Unsupported Geant4 version "
 #endif  /*  G4VERSION_NUMBER>=1000  */