]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add Kokkos link libraries to Trilinos link libraries 14457/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 25 Nov 2022 13:46:06 +0000 (08:46 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 28 Nov 2022 14:21:42 +0000 (09:21 -0500)
cmake/modules/FindDEAL_II_TRILINOS.cmake

index ac3f6d0ec4e55ae77d3a681988b800b230349c90..6308045a60ef1ca049101335baefd3fe9c3dbb10 100644 (file)
@@ -132,6 +132,7 @@ if(TARGET Kokkos::kokkos)
   get_property(KOKKOS_COMPILE_FLAGS_FULL TARGET Kokkos::kokkos PROPERTY INTERFACE_COMPILE_OPTIONS)
   string(REGEX REPLACE "\\$<\\$<COMPILE_LANGUAGE:CXX>:([^>]*)>" "\\1" KOKKOS_COMPILE_FLAGS "${KOKKOS_COMPILE_FLAGS_FULL}")
   string(REPLACE ";" " " KOKKOS_COMPILE_FLAGS "${KOKKOS_COMPILE_FLAGS}")
+  get_property(KOKKOS_LINK_LIBRARIES TARGET Kokkos::kokkos PROPERTY INTERFACE_LINK_LIBRARIES)
 endif()
 
 #
@@ -158,7 +159,7 @@ endforeach()
 deal_ii_package_handle(TRILINOS
   LIBRARIES
     REQUIRED ${_libraries}
-    OPTIONAL Trilinos_TPL_LIBRARIES MPI_CXX_LIBRARIES
+    OPTIONAL Trilinos_TPL_LIBRARIES MPI_CXX_LIBRARIES KOKKOS_LINK_LIBRARIES
   INCLUDE_DIRS
     REQUIRED Trilinos_INCLUDE_DIRS
     OPTIONAL Trilinos_TPL_INCLUDE_DIRS

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.