From 52ec1ec03f2e2974ef867f6bda0a18693079780b Mon Sep 17 00:00:00 2001 From: kliegeois Date: Thu, 22 Feb 2024 12:39:12 -0700 Subject: [PATCH] [cmake] Link Kokkos::kokkos --- unittests/Kokkos/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/unittests/Kokkos/CMakeLists.txt b/unittests/Kokkos/CMakeLists.txt index be0250cf1..2f6ee89dc 100644 --- a/unittests/Kokkos/CMakeLists.txt +++ b/unittests/Kokkos/CMakeLists.txt @@ -12,5 +12,6 @@ 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})