Skip to content

Commit 67a248c

Browse files
Berger Vergiat LucBerger Vergiat Luc
authored andcommitted
Same fix as PR kokkos#2435 but rebased on develop
Signed-off-by: Berger Vergiat Luc <[email protected]>
1 parent d1e6670 commit 67a248c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/KokkosKernelsConfig.cmake.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ include(CMakeFindDependencyMacro)
77

88
@KOKKOSKERNELS_TPL_EXPORTS@
99

10-
find_dependency(Kokkos HINTS @Kokkos_DIR@)
10+
IF(NOT Kokkos_FOUND)
11+
find_dependency(Kokkos HINTS @Kokkos_DIR@)
12+
ENDIF()
1113

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

0 commit comments

Comments
 (0)