From ce55ce34c5b4fe61f5770482f9ff6bb7d4304492 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Thu, 24 Jul 2014 13:12:10 +0000
Subject: [PATCH] Main CMakeLists.txt, add missing include_directories for ROOT
 and CLHEP

---
 CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index ef6e9ba96..934ebf555 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -56,6 +56,7 @@ include( DD4hepMacros )
 #-----------------------------
 
 find_package(ROOT REQUIRED)
+include_directories( SYSTEM ${ROOT_INCLUDE_DIR} )
 
 ##checks for xercesc or not and sets up the include_directories
 include(DD4hep_XML_setup)
@@ -131,6 +132,7 @@ if(DD4HEP_USE_GEANT4)
     endif()
 
     find_package( CLHEP REQUIRED )
+    include_directories( SYSTEM ${CLHEP_INCLUDE_DIRS} )
 
     get_filename_component(CLHEP_LIBRARY_PATH "${CLHEP_LIBRARIES}" PATH)
     
-- 
GitLab