summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-04-15 18:17:28 +0200
committerGitHub <noreply@github.com>2024-04-15 18:17:28 +0200
commit8033455d5ff4071eeef71801ced9f13e1bcfd16b (patch)
tree8430d9ad6366707418261cd675611079d298f6b5 /var
parent50a5a6fea45248a0091d85189ffbd34b8130e9c3 (diff)
downloadspack-8033455d5ff4071eeef71801ced9f13e1bcfd16b.tar.gz
spack-8033455d5ff4071eeef71801ced9f13e1bcfd16b.tar.bz2
spack-8033455d5ff4071eeef71801ced9f13e1bcfd16b.tar.xz
spack-8033455d5ff4071eeef71801ced9f13e1bcfd16b.zip
hdf5: require mpich+fortran when hdf5+fortran (#43591)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index a150a2f35b..ac3aa1ef2e 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -112,7 +112,10 @@ class Hdf5(CMakePackage):
depends_on("cmake@3.12:", type="build")
depends_on("cmake@3.18:", type="build", when="@1.13:")
- depends_on("mpi", when="+mpi")
+ with when("+mpi"):
+ depends_on("mpi")
+ depends_on("mpich+fortran", when="+fortran ^[virtuals=mpi] mpich")
+
depends_on("java", type=("build", "run"), when="+java")
depends_on("szip", when="+szip")
depends_on("zlib-api")