From: Daniel Arndt Date: Wed, 7 Jun 2023 15:01:50 +0000 (+0000) Subject: Explicitly add Kokkos::kokkos to Trilinos targets X-Git-Tag: v9.5.0-rc1~143^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8b18a43bf56f9a63ae2debea9c8370f8db34d87;p=dealii.git Explicitly add Kokkos::kokkos to Trilinos targets --- diff --git a/cmake/modules/FindDEAL_II_TRILINOS.cmake b/cmake/modules/FindDEAL_II_TRILINOS.cmake index 4aea319913..21dfa36636 100644 --- a/cmake/modules/FindDEAL_II_TRILINOS.cmake +++ b/cmake/modules/FindDEAL_II_TRILINOS.cmake @@ -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 )