summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMartin Pokorny <martin@truffulatree.org>2021-08-09 03:13:26 -0600
committerGitHub <noreply@github.com>2021-08-09 11:13:26 +0200
commit22bc189e0e3dd8dbc9423bd2a840ba5cfcaf211f (patch)
treec2cd0d7d4ad30ecb2545352861b3aaa5322e8feb /var
parent7ddd6ad4614316143b8af7e13a9668e22b8dabe7 (diff)
downloadspack-22bc189e0e3dd8dbc9423bd2a840ba5cfcaf211f.tar.gz
spack-22bc189e0e3dd8dbc9423bd2a840ba5cfcaf211f.tar.bz2
spack-22bc189e0e3dd8dbc9423bd2a840ba5cfcaf211f.tar.xz
spack-22bc189e0e3dd8dbc9423bd2a840ba5cfcaf211f.zip
casacore: add variant for ADIOS2 support (#25251)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/casacore/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/casacore/package.py b/var/spack/repos/builtin/packages/casacore/package.py
index 7ce957d3d9..7b113638f6 100644
--- a/var/spack/repos/builtin/packages/casacore/package.py
+++ b/var/spack/repos/builtin/packages/casacore/package.py
@@ -32,6 +32,7 @@ class Casacore(CMakePackage):
variant('readline', default=True, description='Build readline support')
# see note below about the reason for disabling the "sofa" variant
# variant('sofa', default=False, description='Build SOFA support')
+ variant('adios2', default=False, description='Build ADIOS2 support')
variant('fftpack', default=False, description='Build FFTPack')
variant('hdf5', default=False, description='Build HDF5 support')
variant('python', default=False, description='Build python support')
@@ -55,6 +56,8 @@ class Casacore(CMakePackage):
# force a dependency when building unit tests
depends_on('sofa-c', type='test')
depends_on('hdf5', when='+hdf5')
+ depends_on('adios2+mpi', when='+adios2')
+ depends_on('mpi', when='+adios2')
depends_on('python@2.6:', when='+python')
depends_on('boost+python', when='+python')
depends_on('py-numpy', when='+python')
@@ -67,6 +70,10 @@ class Casacore(CMakePackage):
args.append(self.define_from_variant('USE_OPENMP', 'openmp'))
args.append(self.define_from_variant('USE_READLINE', 'readline'))
args.append(self.define_from_variant('USE_HDF5', 'hdf5'))
+ args.append(self.define_from_variant('USE_ADIOS2', 'adios2'))
+ args.append(self.define_from_variant('USE_MPI', 'adios2'))
+ if spec.satisfies('+adios2'):
+ args.append(self.define('ENABLE_TABLELOCKING', False))
# fftw3 is required by casacore starting with v3.4.0, but the
# old fftpack is still available. For v3.4.0 and later, we