NetCDF package: update constraints on hdf5 mpi support (#10788)

Update NetCDF to require building hdf5 without mpi when NetCDF itself
is built without mpi support.
This commit is contained in:
Greg Sjaardema 2019-03-06 19:20:16 -07:00 committed by Peter Scheibel
parent 35daaa440f
commit c19df8be5d

View File

@ -103,7 +103,8 @@ def url_for_version(self, version):
# 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