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 13, 2024
1 parent 9bea9ad commit 6477fd3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 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})
target_link_libraries(KokkosTests PUBLIC ${Kokkos_LIBRARIES})

0 comments on commit 6477fd3

Please sign in to comment.