From 6e28d9d2c848f4cf42450c404e702d3c2db8422d Mon Sep 17 00:00:00 2001
From: Marco Clemencic <marco.clemencic@cern.ch>
Date: Mon, 15 Jan 2018 13:33:35 +0000
Subject: [PATCH] Declare CLHEP and Geant4 headers as "SYSTEM" headers

---
 LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt b/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt
index f04a0d5..36b7d00 100644
--- a/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt
+++ b/LHCbG4Tests/G4SamplingCaloTest/CMakeLists.txt
@@ -5,7 +5,7 @@ gaudi_depends_on_subdirs(LHCbG4PhysLists)
 
 find_package(CLHEP REQUIRED)
 
-include_directories(${CMAKE_INSTALL_PREFIX}/include)
+include_directories(SYSTEM ${CMAKE_INSTALL_PREFIX}/include ${CLHEP_INCLUDE_DIRS})
 link_directories(${CMAKE_INSTALL_PREFIX}/lib)
 
 set(Geant4_LIBRARIES
@@ -25,7 +25,4 @@ gaudi_add_executable(G4SamplingCaloTest
 
 add_dependencies(G4SamplingCaloTest Geant4)
 
-# Dirty fix to disable the pesky warning
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-suggest-override")
-
 gaudi_install_scripts()
-- 
GitLab