Skip to content

Commit

Permalink
Merge pull request #14457 from masterleinad/add_kokkos_libraries_to_t…
Browse files Browse the repository at this point in the history
…rilinos

Add Kokkos link libraries to Trilinos link libraries
  • Loading branch information
tamiko committed Nov 30, 2022
2 parents 85e4fff + 1974e59 commit 34ef6b5
Showing 1 changed file with 2 additions and 1 deletion.
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()
process_feature(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

0 comments on commit 34ef6b5

Please sign in to comment.