summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDave Love <dave.love@manchester.ac.uk>2022-11-08 17:06:58 +0000
committerGitHub <noreply@github.com>2022-11-08 18:06:58 +0100
commitbca8b52a8d2448e60d54fdb7ce3490d1e4c566eb (patch)
tree1a9cc255c38b39e1dddc53bbaf96eafae86a417c /var
parente4c2d1afc6952426ce148e439d781881f38b6cfe (diff)
downloadspack-bca8b52a8d2448e60d54fdb7ce3490d1e4c566eb.tar.gz
spack-bca8b52a8d2448e60d54fdb7ce3490d1e4c566eb.tar.bz2
spack-bca8b52a8d2448e60d54fdb7ce3490d1e4c566eb.tar.xz
spack-bca8b52a8d2448e60d54fdb7ce3490d1e4c566eb.zip
cosma: Add shared option (#33751)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cosma/package.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/var/spack/repos/builtin/packages/cosma/package.py b/var/spack/repos/builtin/packages/cosma/package.py
index 7b52650c81..6ea6651038 100644
--- a/var/spack/repos/builtin/packages/cosma/package.py
+++ b/var/spack/repos/builtin/packages/cosma/package.py
@@ -33,6 +33,7 @@ class Cosma(CMakePackage):
variant("cuda", default=False, description="Build with cuBLAS support")
variant("rocm", default=False, description="Build with rocBLAS support")
variant("scalapack", default=False, description="Build with ScaLAPACK API")
+ variant("shared", default=False, description="Build the shared library version")
depends_on("cmake@3.12:", type="build")
depends_on("mpi@3:")
@@ -91,10 +92,11 @@ class Cosma(CMakePackage):
def cmake_args(self):
return [
- self.define("COSMA_WITH_TESTS", "OFF"),
- self.define("COSMA_WITH_APPS", "OFF"),
- self.define("COSMA_WITH_PROFILING", "OFF"),
- self.define("COSMA_WITH_BENCHMARKS", "OFF"),
+ self.define("COSMA_WITH_TESTS", False),
+ self.define("COSMA_WITH_APPS", False),
+ self.define("COSMA_WITH_PROFILING", False),
+ self.define("COSMA_WITH_BENCHMARKS", False),
self.define("COSMA_BLAS", self.cosma_blas_cmake_arg()),
self.define("COSMA_SCALAPACK", self.cosma_scalapack_cmake_arg()),
+ self.define_from_variant("BUILD_SHARED_LIBS", "shared"),
]