Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kokkos link libraries to Trilinos link libraries #14457

Merged
merged 1 commit into from
Nov 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion cmake/modules/FindDEAL_II_TRILINOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

#
Expand All @@ -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
Expand Down