Skip to content

Commit

Permalink
Test if Kokkos is already included
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jan 25, 2024
1 parent a208f3d commit f3840ff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ option(KokkosFFT_INTERNAL_Kokkos "Build internal Kokkos instead of relying on ex

if (NOT KokkosFFT_INTERNAL_Kokkos)
# First check, Kokkos is added as subdirectory or not
if ("${KOKKOS_PATH}" STREQUAL "")
if(NOT TARGET Kokkos::kokkos)
find_package(Kokkos REQUIRED)
else()
message(STATUS "Using Kokkos at ${KOKKOS_PATH}")
endif()
else ()
add_subdirectory(tpls/kokkos)
Expand Down

0 comments on commit f3840ff

Please sign in to comment.