Fix NetCDF/HDF5 dependency resolution problems
This commit is contained in:
parent
7f57405eac
commit
4d12c5455a
@ -50,10 +50,15 @@ class Netcdf(Package):
|
||||
|
||||
# Required for NetCDF-4 support
|
||||
depends_on("zlib")
|
||||
depends_on('hdf5@:1.8+mpi', when='@:4.4.0+mpi')
|
||||
depends_on('hdf5+mpi', when='@4.4.1:+mpi')
|
||||
depends_on('hdf5@:1.8~mpi', when='@:4.4.0~mpi')
|
||||
depends_on('hdf5~mpi', when='@4.4.1:~mpi')
|
||||
depends_on('hdf5')
|
||||
|
||||
# Variant forwarding
|
||||
depends_on('hdf5+mpi', when='+mpi')
|
||||
depends_on('hdf5~mpi', when='~mpi')
|
||||
|
||||
# NetCDF 4.4.0 and prior have compatibility issues with HDF5 1.10 and later
|
||||
# https://github.com/Unidata/netcdf-c/issues/250
|
||||
depends_on('hdf5@:1.8', when='@:4.4.0')
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# Environment variables
|
||||
|
Loading…
Reference in New Issue
Block a user