Skip to content

Commit

Permalink
only search for kokkos if it is not already found
Browse files Browse the repository at this point in the history
  • Loading branch information
JBludau committed Nov 21, 2024
1 parent fa587df commit 64323c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/KokkosKernelsConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ include(CMakeFindDependencyMacro)

@KOKKOSKERNELS_TPL_EXPORTS@

find_dependency(Kokkos HINTS @Kokkos_DIR@)
IF(NOT Kokkos_FOUND)
find_dependency(Kokkos HINTS @Kokkos_DIR@)
ENDIF()

INCLUDE("${KokkosKernels_CMAKE_DIR}/KokkosKernelsTargets.cmake")

Expand Down

0 comments on commit 64323c4

Please sign in to comment.