diff options
author | Steven Smith <smith84@llnl.gov> | 2021-05-07 04:40:04 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 13:40:04 +0200 |
commit | c131f1300638b6ffd33646d66caaa806c0dc8abd (patch) | |
tree | dd973915feebbbc41138da9cb6a90d8a48ca0ed7 | |
parent | 474ec196e6fbcf2b45ea5ee5867d1ff8a8e0326b (diff) | |
download | spack-c131f1300638b6ffd33646d66caaa806c0dc8abd.tar.gz spack-c131f1300638b6ffd33646d66caaa806c0dc8abd.tar.bz2 spack-c131f1300638b6ffd33646d66caaa806c0dc8abd.tar.xz spack-c131f1300638b6ffd33646d66caaa806c0dc8abd.zip |
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.
-rw-r--r-- | var/spack/repos/builtin/packages/silo/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/silo/package.py b/var/spack/repos/builtin/packages/silo/package.py index e4af03f467..b51c7a0822 100644 --- a/var/spack/repos/builtin/packages/silo/package.py +++ b/var/spack/repos/builtin/packages/silo/package.py @@ -30,6 +30,10 @@ class Silo(AutotoolsPackage): description='Compile with MPI Compatibility') variant('hdf5', default=True, 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('hdf5@:1.10.999', when='@:4.10.2+hdf5') @@ -106,6 +110,8 @@ class Silo(AutotoolsPackage): '--enable-fortran' if '+fortran' in spec else '--disable-fortran', '--enable-silex' if '+silex' in spec else '--disable-silex', '--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 |