diff options
-rw-r--r-- | var/spack/repos/builtin/packages/netcdf/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/netcdf/package.py b/var/spack/repos/builtin/packages/netcdf/package.py index 58e8e276a9..d8e8abfef0 100644 --- a/var/spack/repos/builtin/packages/netcdf/package.py +++ b/var/spack/repos/builtin/packages/netcdf/package.py @@ -103,7 +103,8 @@ class Netcdf(AutotoolsPackage): # High-level API of HDF5 1.8.9 or later is required for netCDF-4 support: # http://www.unidata.ucar.edu/software/netcdf/docs/getting_and_building_netcdf.html - depends_on('hdf5@1.8.9:+hl') + depends_on('hdf5@1.8.9:+hl~mpi', when='~mpi') + depends_on('hdf5@1.8.9:+hl+mpi', when='+mpi') # Starting version 4.4.0, it became possible to disable parallel I/O even # if HDF5 supports it. For previous versions of the library we need |