Skip to content

Commit

Permalink
Merge pull request #1855 from ndellingwood/issue-1749
Browse files Browse the repository at this point in the history
CMakeLists.txt: Add alias to match what is exported from Trilinos
  • Loading branch information
ndellingwood authored Jun 8, 2023
2 parents a907ca5 + 48d67ff commit 8b62c38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ ELSE()
#no linking commands required - tribits does this
ELSE()
ADD_LIBRARY(Kokkos::kokkoskernels ALIAS kokkoskernels)
# Address kokkos/kokkos-kernels#1749
ADD_LIBRARY(KokkosKernels::kokkoskernels ALIAS kokkoskernels)
# all_libs target is required for TriBITS-compliance
ADD_LIBRARY(KokkosKernels::all_libs ALIAS kokkoskernels)
TARGET_LINK_LIBRARIES(kokkoskernels PUBLIC Kokkos::kokkos)
FOREACH(DIR ${KK_INCLUDE_DIRS})
TARGET_INCLUDE_DIRECTORIES(kokkoskernels PUBLIC $<BUILD_INTERFACE:${DIR}>)
Expand Down

0 comments on commit 8b62c38

Please sign in to comment.