diff --git a/unittests/Kokkos/CMakeLists.txt b/unittests/Kokkos/CMakeLists.txt index 9e01dcddd..cfe2432ab 100644 --- a/unittests/Kokkos/CMakeLists.txt +++ b/unittests/Kokkos/CMakeLists.txt @@ -13,5 +13,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})