Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Nov 6, 2024
1 parent 8d045cc commit e18f97e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tests/cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,15 @@ if(PRESSIO_ENABLE_TPL_KOKKOS)
")
endif()

set(KOKKOS_LIB_NAMES kokkoscontainers kokkoscore kokkoskernels)
include_directories(SYSTEM ${KOKKOS_ROOT}/include ${KOKKOS_KERNELS_ROOT}/include)
link_directories(${KOKKOS_ROOT}/lib ${KOKKOS_ROOT}/lib64
${KOKKOS_KERNELS_ROOT}/lib ${KOKKOS_KERNELS_ROOT}/lib64)
# set(KOKKOS_LIB_NAMES kokkoscontainers kokkoscore kokkoskernels)
# include_directories(SYSTEM ${KOKKOS_ROOT}/include ${KOKKOS_KERNELS_ROOT}/include)
# link_directories(${KOKKOS_ROOT}/lib ${KOKKOS_ROOT}/lib64
# ${KOKKOS_KERNELS_ROOT}/lib ${KOKKOS_KERNELS_ROOT}/lib64)

link_libraries(${KOKKOS_LIB_NAMES})
find_package(Kokkos REQUIRED)
find_package(KokkosKernels REQUIRED)

link_libraries(Kokkos::kokkos Kokkos::kokkoskernels)
endif()
endif()

Expand Down

0 comments on commit e18f97e

Please sign in to comment.