diff options
author | Freifrau von Bleifrei <freifrauvonbleifrei@users.noreply.github.com> | 2023-10-02 07:14:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-02 07:14:50 +0200 |
commit | 71c5b948d08c3212c715c6fc60390889014e0edb (patch) | |
tree | 74c65620730a216f64022c5ab4a2abc034d7b951 /var | |
parent | 726d6b9881156bb56a6332f433f7fbf7d87fcfd5 (diff) | |
download | spack-71c5b948d08c3212c715c6fc60390889014e0edb.tar.gz spack-71c5b948d08c3212c715c6fc60390889014e0edb.tar.bz2 spack-71c5b948d08c3212c715c6fc60390889014e0edb.tar.xz spack-71c5b948d08c3212c715c6fc60390889014e0edb.zip |
discotec package: add selalib variant (#40222)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/discotec/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/discotec/package.py b/var/spack/repos/builtin/packages/discotec/package.py index 9961636d0f..7693f97c83 100644 --- a/var/spack/repos/builtin/packages/discotec/package.py +++ b/var/spack/repos/builtin/packages/discotec/package.py @@ -32,6 +32,7 @@ class Discotec(CMakePackage): depends_on("glpk") depends_on("highfive+mpi+boost+ipo", when="+hdf5") depends_on("mpi") + depends_on("selalib", when="+selalib") depends_on("vtk", when="+vtk") def cmake_args(self): @@ -46,5 +47,7 @@ class Discotec(CMakePackage): self.define_from_variant("DISCOTEC_USE_VTK", "vtk"), self.define_from_variant("DISCOTEC_WITH_SELALIB", "selalib"), ] + if "+selalib" in self.spec: + args.append(self.define("SELALIB_DIR", self.spec["selalib"].prefix.cmake)) return args |