summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"),
]