Skip to content

Commit

Permalink
[cmake] Better Kokkos linking
Browse files Browse the repository at this point in the history
  • Loading branch information
gojakuch committed Apr 15, 2024
1 parent a0dad54 commit 662e85c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions unittests/Kokkos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

0 comments on commit 662e85c

Please sign in to comment.