diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index a4e14832d51858595c25e6a466bb446be2105316..fa5afd115500bc9d3b2220753f01eaef4e990d31 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -30,9 +30,9 @@ find_package ( DD4hep REQUIRED )
 include ( ${DD4hep_DIR}/cmake/DD4hep.cmake )
 include ( ${DD4hep_DIR}/cmake/DD4hepBuild.cmake )
 #
-dd4hep_set_compiler_flags()
-#
 find_package ( ROOT REQUIRED COMPONENTS Geom GenVector )
+include(${ROOT_USE_FILE})
+#
 dd4hep_set_compiler_flags()
 #
 dd4hep_configure_output()