]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix cmake bug in PETSC_WITH_KOKKOS check 17658/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 4 Sep 2024 21:44:20 +0000 (17:44 -0400)
committerTimo Heister <timo.heister@gmail.com>
Wed, 4 Sep 2024 21:53:40 +0000 (17:53 -0400)
The variable DEAL_II_PETSC_WITH_KOKKOS is only defined once the
configuration finishes.

cmake/configure/configure_20_petsc.cmake

index 9b55e63bcbfad1c80c5ef42c98b0fe4f9fbb404f..f3a237da7ecab21d7d2d7effc37a80ff8cd876ac 100644 (file)
@@ -82,7 +82,7 @@ macro(feature_petsc_find_external var)
       set(${var} FALSE)
     endif()
 
-    if(DEAL_II_PETSC_WITH_KOKKOS)
+    if(PETSC_WITH_KOKKOS)
       if(DEAL_II_FORCE_BUNDLED_KOKKOS)
         set(PETSC_ADDITIONAL_ERROR_STRING
           ${PETSC_ADDITIONAL_ERROR_STRING}

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.