From a8884845a4bbd358e9a06ee1af9c64a1ff3d9c12 Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Wed, 7 Jun 2023 16:52:03 -0600 Subject: [PATCH 1/2] CMakeLists.txt: Add alias to match what is exported from Trilinos Partially addresses issue #1749 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 646c89c813..8df113a6a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,6 +321,8 @@ 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) TARGET_LINK_LIBRARIES(kokkoskernels PUBLIC Kokkos::kokkos) FOREACH(DIR ${KK_INCLUDE_DIRS}) TARGET_INCLUDE_DIRECTORIES(kokkoskernels PUBLIC $) From 48d67ff62f77b3640b0464fd4e00c4abc834816d Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Wed, 7 Jun 2023 16:56:48 -0600 Subject: [PATCH 2/2] CMakeLists.txt: Add all_libs alias Required for for TriBITS-compliance Discussion at https://github.com/trilinos/Trilinos/issues/8866#issuecomment-796969671 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8df113a6a8..5bc71af5bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -323,6 +323,8 @@ 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 $)