From c78f4e0c69dc0d47e7ca8305f2ee0b4022b340e1 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Wed, 30 Oct 2024 08:17:12 -0400 Subject: [PATCH] Make Kokkos search more robust --- cmake/modules/FindDEAL_II_PETSC.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindDEAL_II_PETSC.cmake b/cmake/modules/FindDEAL_II_PETSC.cmake index 445490aed5..6e56267ddf 100644 --- a/cmake/modules/FindDEAL_II_PETSC.cmake +++ b/cmake/modules/FindDEAL_II_PETSC.cmake @@ -201,8 +201,11 @@ if(NOT PETSC_PETSCVARIABLES MATCHES "-NOTFOUND") REGEX "^KOKKOS_INCLUDE =.*") string(REGEX REPLACE "^KOKKOS_INCLUDE = -I" "" KOKKOS_INCLUDE "${KOKKOS_INCLUDE}") find_package(Kokkos 3.7.0 QUIET - HINTS ${KOKKOS_INCLUDE}/.. + PATHS ${KOKKOS_INCLUDE}/.. NO_DEFAULT_PATH ) + if(NOT Kokkos_FOUND) + set(PETSC_FOUND FALSE) + endif() endif() endif() -- 2.39.5