From: Bruno Turcksin Date: Wed, 30 Oct 2024 12:17:12 +0000 (-0400) Subject: Make Kokkos search more robust X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c78f4e0c69dc0d47e7ca8305f2ee0b4022b340e1;p=dealii.git Make Kokkos search more robust --- 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()