diff --git a/var/spack/repos/builtin/packages/adios2/package.py b/var/spack/repos/builtin/packages/adios2/package.py index 2f70cd0582..567c08dc6a 100644 --- a/var/spack/repos/builtin/packages/adios2/package.py +++ b/var/spack/repos/builtin/packages/adios2/package.py @@ -120,9 +120,11 @@ class Adios2(CMakePackage, CudaPackage, ROCmPackage): depends_on("cuda", when="+cuda ~kokkos") # Kokkos support - depends_on("kokkos@3.7: +cuda +wrapper", when="+kokkos +cuda") - depends_on("kokkos@3.7: +rocm", when="+kokkos +rocm") - depends_on("kokkos@3.7: +sycl", when="+kokkos +sycl") + with when("+kokkos"): + depends_on("kokkos@3.7:") + depends_on("kokkos +cuda +wrapper", when="+cuda") + depends_on("kokkos +rocm", when="+rocm") + depends_on("kokkos +sycl", when="+sycl") # Propagate CUDA target to kokkos for +cuda for cuda_arch in CudaPackage.cuda_arch_values: