From 4cf40e8b2df641650448c539e969155cec593590 Mon Sep 17 00:00:00 2001
From: Stephane Del Pino <stephane.delpino44@gmail.com>
Date: Thu, 14 Jun 2018 00:08:16 +0200
Subject: [PATCH] Sets KOKKOS_ENABLE_EXPLICIT_INSTANTIATION=OFF by default

Explicit type instantiation for fill/copy will have to be evaluated. Deactivated
by now since it is heavy compilation time consuming in a small project as pastis ATM
---
 CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 686c4aa9d..2acb5ab54 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -82,6 +82,9 @@ if(${OPENMP_FOUND})
   set(KOKKOS_ENABLE_OPENMP ON CACHE BOOL "")
 endif()
 
+# do not build ETI by default
+set(KOKKOS_ENABLE_EXPLICIT_INSTANTIATION OFF CACHE BOOL "")
+
 # Kokkso compiler flags
 add_subdirectory(${PASTIS_SOURCE_DIR}/packages/kokkos)
 include_directories(${Kokkos_INCLUDE_DIRS_RET})
-- 
GitLab