]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Explicitly add Kokkos::kokkos to Trilinos targets
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 7 Jun 2023 15:01:50 +0000 (15:01 +0000)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 7 Jun 2023 15:01:50 +0000 (15:01 +0000)
cmake/modules/FindDEAL_II_TRILINOS.cmake

index 4aea319913b4d174ca1f204346b202402c281598..21dfa366365c4dd589a442f0e67ef15d955f20ec 100644 (file)
@@ -110,9 +110,13 @@ if(Trilinos_FOUND)
 endif()
 
 if(TRILINOS_VERSION VERSION_GREATER_EQUAL 14)
-  set(_target Trilinos::all_libs)
+  set(_targets Trilinos::all_libs)
+  if(TARGET Kokkos::kokkos)
+    list(APPEND _targets Kokkos::kokkos)
+  endif()
+
   process_feature(TRILINOS
-    TARGETS REQUIRED _target
+    TARGETS REQUIRED _targets
     CLEAR
       EPETRA_CONFIG_H TRILINOS_CXX_SUPPORTS_SACADO_COMPLEX_RAD
     )

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.