diff --git a/var/spack/repos/builtin/packages/hdf5-vol-log/package.py b/var/spack/repos/builtin/packages/hdf5-vol-log/package.py index d36910a195..d5e057942c 100644 --- a/var/spack/repos/builtin/packages/hdf5-vol-log/package.py +++ b/var/spack/repos/builtin/packages/hdf5-vol-log/package.py @@ -20,6 +20,7 @@ class Hdf5VolLog(AutotoolsPackage): version("1.4.0", tag="logvol.1.4.0") depends_on("hdf5@1.14.0:", when="@1.4.0:") + depends_on("mpi") depends_on("autoconf", type="build") depends_on("automake", type="build") depends_on("libtool", type="build") @@ -29,9 +30,8 @@ def setup_run_environment(self, env): env.prepend_path("HDF5_PLUGIN_PATH", self.spec.prefix.lib) def configure_args(self): - args = [] - - args.append("--enable-shared") - args.append("--enable-zlib") - - return args + return [ + "--enable-shared", + "--enable-zlib", + "--with-mpi={}".format(self.spec["mpi"].prefix), + ]