From 08504a1968b9c6208e28be8b5773d9066f20b505 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Mon, 12 Nov 2018 23:02:44 +0100
Subject: [PATCH] Add SYSTEM tag to treat Kokkos includes as system files

This prevents from dealing with Kokkos warnings
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1f32af28..7744709a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -97,7 +97,7 @@ set(KOKKOS_ENABLE_DEPRECATED_CODE OFF CACHE BOOL "")
 
 # Kokkso compiler flags
 add_subdirectory(${PASTIS_SOURCE_DIR}/packages/kokkos)
-include_directories(${Kokkos_INCLUDE_DIRS_RET})
+include_directories(SYSTEM ${Kokkos_INCLUDE_DIRS_RET})
 include(GetKokkosCompilerFlags)
 
 # sets Kokkos debug flags when non release build
-- 
GitLab