Skip to content

Commit

Permalink
Merge pull request #21 from uliegecsm/cmake-dependency-on-kokkos-core
Browse files Browse the repository at this point in the history
cmake(bug): kokkos-utils target must depend on kokkos core target
  • Loading branch information
maartenarnst authored Sep 18, 2024
2 parents 4ecf279 + 7a62869 commit fb6841e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ target_compile_definitions(
KOKKOS_IMPL_PUBLIC_INCLUDE
)

target_link_libraries(
KokkosUtils
INTERFACE
Kokkos::kokkoscore
)

#---- Testing.
if(KokkosUtils_ENABLE_TESTS)
enable_testing()
Expand Down
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ target_sources(
)
target_link_libraries(
test_common
PRIVATE
Kokkos::kokkoscore
PUBLIC
GTest::gtest
Kokkos::kokkoscore
)

### TESTS : atomics ###
Expand Down

0 comments on commit fb6841e

Please sign in to comment.