summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDom Heinzeller <dom.heinzeller@icloud.com>2024-03-13 11:19:24 -0600
committerGitHub <noreply@github.com>2024-03-13 10:19:24 -0700
commit3a828358cb9af60587eb338faf2f632b1f462e45 (patch)
treed9f68ccc32d2a7f6734f73208af41486e23c4e14 /var
parent94a1d1414aa26fff55b55f1e9c93f342d12b6464 (diff)
downloadspack-3a828358cb9af60587eb338faf2f632b1f462e45.tar.gz
spack-3a828358cb9af60587eb338faf2f632b1f462e45.tar.bz2
spack-3a828358cb9af60587eb338faf2f632b1f462e45.tar.xz
spack-3a828358cb9af60587eb338faf2f632b1f462e45.zip
Update var/spack/repos/builtin/packages/ecmwf-atlas/package.py: set correct ectrans/trans variant, configure tesselation variant (#43151)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ecmwf-atlas/package.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/ecmwf-atlas/package.py b/var/spack/repos/builtin/packages/ecmwf-atlas/package.py
index 9a53482b33..e14429104a 100644
--- a/var/spack/repos/builtin/packages/ecmwf-atlas/package.py
+++ b/var/spack/repos/builtin/packages/ecmwf-atlas/package.py
@@ -57,13 +57,14 @@ class EcmwfAtlas(CMakePackage):
variant("openmp", default=True, description="Use OpenMP")
depends_on("llvm-openmp", when="+openmp %apple-clang", type=("build", "run"))
variant("shared", default=True, description="Build shared libraries")
-
variant("trans", default=False, description="Enable trans")
depends_on("ectrans@1.1.0:", when="@0.31.0: +trans")
variant("eigen", default=True, description="Enable eigen")
depends_on("eigen", when="+eigen")
variant("fftw", default=True, description="Enable fftw")
depends_on("fftw-api", when="+fftw")
+ variant("tesselation", default=False, description="Enable tesselation", when="@0.35.0:")
+ depends_on("qhull", when="+tesselation")
variant("fismahigh", default=False, description="Apply patching for FISMA-high compliance")
@@ -71,10 +72,14 @@ class EcmwfAtlas(CMakePackage):
args = [
self.define_from_variant("ENABLE_OMP", "openmp"),
self.define_from_variant("ENABLE_FCKIT", "fckit"),
- self.define_from_variant("ENABLE_TRANS", "trans"),
self.define_from_variant("ENABLE_EIGEN", "eigen"),
self.define_from_variant("ENABLE_FFTW", "fftw"),
]
+ if self.spec.satisfies("@0.31:0.34"):
+ args.append(self.define_from_variant("ENABLE_TRANS", "trans"))
+ if self.spec.satisfies("@0.35:"):
+ args.append(self.define_from_variant("ENABLE_ECTRANS", "trans"))
+ args.append(self.define_from_variant("ENABLE_TESSELATION", "tesselation"))
if "~shared" in self.spec:
args.append("-DBUILD_SHARED_LIBS=OFF")
return args