Skip to content

Commit

Permalink
add include guard for kokkos kernels in find
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahm-LANL committed Nov 26, 2024
1 parent e95f74f commit cbd2512
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/singularity-eos/kokkos.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ macro(singularity_import_kokkoskernels)
endmacro()

macro(singularity_find_kokkoskernels)
find_package(KokkosKernels REQUIRED)
if(NOT TARGET Kokkos::kokkoskernels)
find_package(KokkosKernels REQUIRED)
endif()
endmacro()

macro(singularity_enable_kokkoskernels target)
Expand Down

0 comments on commit cbd2512

Please sign in to comment.