From: Daniel Arndt Date: Fri, 25 Nov 2022 13:46:06 +0000 (-0500) Subject: Add Kokkos link libraries to Trilinos link libraries X-Git-Tag: v9.5.0-rc1~779^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14457%2Fhead;p=dealii.git Add Kokkos link libraries to Trilinos link libraries --- diff --git a/cmake/modules/FindDEAL_II_TRILINOS.cmake b/cmake/modules/FindDEAL_II_TRILINOS.cmake index ac3f6d0ec4..6308045a60 100644 --- a/cmake/modules/FindDEAL_II_TRILINOS.cmake +++ b/cmake/modules/FindDEAL_II_TRILINOS.cmake @@ -132,6 +132,7 @@ if(TARGET Kokkos::kokkos) get_property(KOKKOS_COMPILE_FLAGS_FULL TARGET Kokkos::kokkos PROPERTY INTERFACE_COMPILE_OPTIONS) string(REGEX REPLACE "\\$<\\$:([^>]*)>" "\\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