]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make Kokkos search more robust 17813/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 30 Oct 2024 12:17:12 +0000 (08:17 -0400)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 30 Oct 2024 12:17:12 +0000 (08:17 -0400)
cmake/modules/FindDEAL_II_PETSC.cmake

index 445490aed57a3e6b0918d50dc265c40239962108..6e56267ddf6142547240866d79cf129899a6c72e 100644 (file)
@@ -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()
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.