From 1ffa8108b9afdd61bd02f5234b480600d88a9689 Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Wed, 12 Jul 2017 15:54:21 +0200
Subject: [PATCH] Supress warnings from external package dCache

Also remove add_definitions(-pthread) from CMakeLists.txt.
This is not the right function to use to add the flag, and
it is already taken care of by cmake/modules/CheckCompiler.cmake
in any case.
---
 io/dcache/CMakeLists.txt | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/io/dcache/CMakeLists.txt b/io/dcache/CMakeLists.txt
index a6462f3e16a..9e5603b0cb9 100644
--- a/io/dcache/CMakeLists.txt
+++ b/io/dcache/CMakeLists.txt
@@ -2,10 +2,7 @@
 # CMakeLists.txt file for building ROOT io/dcache package
 ############################################################################
 
-include_directories(${DCAP_INCLUDE_DIRS})
-add_definitions(-pthread)
-
-ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-ignored-qualifiers)
+include_directories(SYSTEM ${DCAP_INCLUDE_DIRS})
 
 ROOT_GENERATE_DICTIONARY(G__DCache *.h MODULE DCache LINKDEF LinkDef.h)
 
-- 
GitLab