diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1f32af2807940a9be738a1391372db2a925768a..7744709a6adc79b630867d084633ec695ef0ec35 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