From 6477fd31fa16a9b00699820600601f59955729d5 Mon Sep 17 00:00:00 2001 From: Atell Krasnopolski Date: Sat, 13 Apr 2024 20:13:47 +0200 Subject: [PATCH] [cmake] Better Kokkos linking --- unittests/Kokkos/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unittests/Kokkos/CMakeLists.txt b/unittests/Kokkos/CMakeLists.txt index 941f3671b..43a03760f 100644 --- a/unittests/Kokkos/CMakeLists.txt +++ b/unittests/Kokkos/CMakeLists.txt @@ -14,6 +14,5 @@ if (NOT (LLVM_REQUIRES_RTTI OR LLVM_ENABLE_RTTI)) endif() endif() -target_link_libraries(KokkosTests PRIVATE Kokkos::kokkos) -target_link_libraries(KokkosTests PUBLIC ${Kokkos_LIBRARIES}) -target_include_directories(KokkosTests SYSTEM PRIVATE ${Kokkos_INCLUDE_DIRS}) +target_include_directories(KokkosTests SYSTEM PUBLIC ${Kokkos_INCLUDE_DIRS}) +target_link_libraries(KokkosTests PUBLIC ${Kokkos_LIBRARIES}) \ No newline at end of file