summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBriffou <thomas.briffard@gmail.com>2023-07-25 00:34:31 +0200
committerGitHub <noreply@github.com>2023-07-24 15:34:31 -0700
commitf28a2ccee2b2a851bf21f1467065db4ab61ce7a9 (patch)
tree509acc0e78af4c7f7d87f01adaec6a49e0ce7cab /var
parent12d86ffb6a536eb39f95764631ad756aef1e3e2f (diff)
downloadspack-f28a2ccee2b2a851bf21f1467065db4ab61ce7a9.tar.gz
spack-f28a2ccee2b2a851bf21f1467065db4ab61ce7a9.tar.bz2
spack-f28a2ccee2b2a851bf21f1467065db4ab61ce7a9.tar.xz
spack-f28a2ccee2b2a851bf21f1467065db4ab61ce7a9.zip
mgis: add new variant for static libraries (#38917)
Co-authored-by: Thomas Briffard <thomas.briffard@michelin.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/mgis/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/mgis/package.py b/var/spack/repos/builtin/packages/mgis/package.py
index fc0c93836e..7910537426 100644
--- a/var/spack/repos/builtin/packages/mgis/package.py
+++ b/var/spack/repos/builtin/packages/mgis/package.py
@@ -46,6 +46,7 @@ class Mgis(CMakePackage):
variant("c", default=True, description="Enables c bindings")
variant("fortran", default=True, description="Enables fortran bindings")
variant("python", default=True, description="Enables python bindings")
+ variant("static", default=False, description="Enables static libraries")
variant(
"build_type",
default="Release",
@@ -104,4 +105,7 @@ class Mgis(CMakePackage):
# adding path to boost
args.append("-DBOOST_ROOT={0}".format(self.spec["boost"].prefix))
+ if "+static" in self.spec:
+ args.append("-Denable-static=ON")
+
return args