From 30616dead9d2ceab59f95de4b99b1136afefa932 Mon Sep 17 00:00:00 2001 From: Carl Pearson Date: Tue, 21 Feb 2023 08:29:23 -0700 Subject: [PATCH] Removes FORCE from SET(KokkosKernels_ENABLE_ALL_COMPONENTS OFF) when a component is enabled This fixes the following issue: 1. User sets KokkosKernernels_ENABLE_ALL_COMPONENTS to on 2. This enables each component 3. Invoke cmake again 4. Since components are enabled, KokkosKernels_ENABLE_ALL_COMPONENTS would be set to off 5. Things that rely on KokkosKernels_ENABLE_ALL_COMPONENTS are no longer build (e.g. tests) By removing FORCE, we no longer override KokkosKernels_ENABLE_ALL_COMPONENTS if it is on --- cmake/kokkoskernels_components.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/kokkoskernels_components.cmake b/cmake/kokkoskernels_components.cmake index f33a62b6ff..6c495960b3 100644 --- a/cmake/kokkoskernels_components.cmake +++ b/cmake/kokkoskernels_components.cmake @@ -51,7 +51,7 @@ KOKKOSKERNELS_ADD_OPTION( # off. IF (KokkosKernels_ENABLE_COMPONENT_BATCHED OR KokkosKernels_ENABLE_COMPONENT_BLAS OR KokkosKernels_ENABLE_COMPONENT_GRAPH OR KokkosKernels_ENABLE_COMPONENT_SPARSE) - SET(KokkosKernels_ENABLE_ALL_COMPONENTS OFF CACHE BOOL "" FORCE) + SET(KokkosKernels_ENABLE_ALL_COMPONENTS OFF CACHE BOOL "") ENDIF() # Graph depends on everything else because it depends