Skip to content

Commit

Permalink
#358: Use correct Kokkos variable within magistrateConfig.cmake file
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jul 10, 2024
1 parent 9ddefa7 commit 492b021
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cmake/magistrateConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ add_library(vt::lib::magistrate ALIAS vt::lib::checkpoint)
include(CMakeFindDependencyMacro)

if (@MAGISTRATE_HAS_KOKKOS_LIBRARY@)
set (kokkos_DIR @kokkos_DIR@)
find_dependency(kokkos REQUIRED HINTS @kokkos_DIR@ NAMES Kokkos)
set (Kokkos_DIR @Kokkos_DIR@)
set (Kokkos_ROOT @Kokkos_ROOT@)
find_dependency(kokkos REQUIRED HINTS @Kokkos_DIR@ @Kokkos_ROOT@ NAMES Kokkos)
endif()

if (@MAGISTRATE_HAS_KOKKOS_KERNELS_LIBRARY@)
set (KokkosKernels_DIR @KokkosKernels_DIR@)
find_dependency(KokkosKernels REQUIRED HINTS @KokkosKernels_DIR@ NAMES KokkosKernels)
set (KokkosKernels_ROOT @KokkosKernels_ROOT@)
find_dependency(KokkosKernels REQUIRED HINTS @KokkosKernels_DIR@ @KokkosKernels_ROOT@ NAMES KokkosKernels)
endif()

0 comments on commit 492b021

Please sign in to comment.