diff --git a/var/spack/repos/builtin/packages/cp2k/package.py b/var/spack/repos/builtin/packages/cp2k/package.py index 33ffdd7d57..3b311585f2 100644 --- a/var/spack/repos/builtin/packages/cp2k/package.py +++ b/var/spack/repos/builtin/packages/cp2k/package.py @@ -273,6 +273,7 @@ class Cp2k(MakefilePackage, CMakePackage, CudaPackage, ROCmPackage): # DBCSR as external dependency depends_on("dbcsr@2.6:") depends_on("dbcsr+openmp", when="+openmp") + depends_on("dbcsr+mpi", when="+mpi") depends_on("dbcsr+cuda", when="+cuda") depends_on("dbcsr+rocm", when="+rocm")