silo: add "hzip" and "fzip" variants (#23447)
SILO has optional support for compression libraries that require C++ (hzip and fpzip). This patch exposes those options as variants to enable configuration of SILO without the C++ libraries for C applications. hzip and fpzip are enabled by default to preserve current behavior.
This commit is contained in:
parent
474ec196e6
commit
c131f13006
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,10 @@ class Silo(AutotoolsPackage):
|
||||||
description='Compile with MPI Compatibility')
|
description='Compile with MPI Compatibility')
|
||||||
variant('hdf5', default=True,
|
variant('hdf5', default=True,
|
||||||
description='Use the HDF5 for database')
|
description='Use the HDF5 for database')
|
||||||
|
variant('hzip', default=True,
|
||||||
|
description='Enable hzip support')
|
||||||
|
variant('fpzip', default=True,
|
||||||
|
description='Enable fpzip support')
|
||||||
|
|
||||||
depends_on('mpi', when='+mpi')
|
depends_on('mpi', when='+mpi')
|
||||||
depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5')
|
depends_on('hdf5@:1.10.999', when='@:4.10.2+hdf5')
|
||||||
|
@ -106,6 +110,8 @@ def configure_args(self):
|
||||||
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
|
'--enable-fortran' if '+fortran' in spec else '--disable-fortran',
|
||||||
'--enable-silex' if '+silex' in spec else '--disable-silex',
|
'--enable-silex' if '+silex' in spec else '--disable-silex',
|
||||||
'--enable-shared' if '+shared' in spec else '--disable-shared',
|
'--enable-shared' if '+shared' in spec else '--disable-shared',
|
||||||
|
'--enable-hzip' if '+hzip' in spec else '--disable-hzip',
|
||||||
|
'--enable-fpzip' if '+fpzip' in spec else '--disable-fpzip',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Do not specify the prefix of zlib if it is in a system directory
|
# Do not specify the prefix of zlib if it is in a system directory
|
||||||
|
|
Loading…
Reference in a new issue