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=refs%2Fpull%2F17813%2Fhead;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()