From 27ef40a4bae63f7ab60075bc8be33b3641573748 Mon Sep 17 00:00:00 2001
From: Marko Petric <marko.petric@cern.ch>
Date: Fri, 16 Jun 2017 23:46:55 +0200
Subject: [PATCH] Warn about using namespace directive in global context in
 header

---
 cmake/DD4hepBuild.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmake/DD4hepBuild.cmake b/cmake/DD4hepBuild.cmake
index 897c5aeef..f8841c803 100644
--- a/cmake/DD4hepBuild.cmake
+++ b/cmake/DD4hepBuild.cmake
@@ -41,7 +41,7 @@ macro(dd4hep_set_compiler_flags)
 
   # AppleClang/Clang specific warning flags
   if(CMAKE_CXX_COMPILER_ID MATCHES "^(Apple)?Clang$")
-    set ( COMPILER_FLAGS ${COMPILER_FLAGS} -Winconsistent-missing-override -Wno-c++1z-extensions)
+    set ( COMPILER_FLAGS ${COMPILER_FLAGS} -Winconsistent-missing-override -Wno-c++1z-extensions -Wheader-hygiene )
   endif()
 
   FOREACH( FLAG ${COMPILER_FLAGS} )
-- 
GitLab