From bca8b52a8d2448e60d54fdb7ce3490d1e4c566eb Mon Sep 17 00:00:00 2001 From: Dave Love Date: Tue, 8 Nov 2022 17:06:58 +0000 Subject: cosma: Add shared option (#33751) --- var/spack/repos/builtin/packages/cosma/package.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'var') 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"), ] -- cgit v1.2.3-70-g09d2