diff --git a/var/spack/repos/builtin/packages/amr-wind/package.py b/var/spack/repos/builtin/packages/amr-wind/package.py index 68deeb65f5..0acc1121ba 100644 --- a/var/spack/repos/builtin/packages/amr-wind/package.py +++ b/var/spack/repos/builtin/packages/amr-wind/package.py @@ -37,7 +37,7 @@ class AmrWind(CMakePackage, CudaPackage, ROCmPackage): description='Activate regression tests') depends_on('hypre~int64+shared@2.20.0:', when='+hypre') - depends_on('hypre+mpi', when='+mpi') + depends_on('hypre+mpi', when='+hypre+mpi') for arch in CudaPackage.cuda_arch_values: depends_on('hypre+unified-memory+cuda cuda_arch=%s' % arch, when='+cuda+hypre cuda_arch=%s' % arch)