diff options
author | Christoph Junghans <christoph.junghans@gmail.com> | 2017-09-18 16:32:20 -0600 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2017-09-18 15:32:20 -0700 |
commit | 6d8614f6715fa61c6846f4c202cb51c58d67ac71 (patch) | |
tree | 425d863f2bf09a180245e7db777c61d6bac461b8 /var | |
parent | efcd8e6f7f67390ac9481197f27f6c893e90eecf (diff) | |
download | spack-6d8614f6715fa61c6846f4c202cb51c58d67ac71.tar.gz spack-6d8614f6715fa61c6846f4c202cb51c58d67ac71.tar.bz2 spack-6d8614f6715fa61c6846f4c202cb51c58d67ac71.tar.xz spack-6d8614f6715fa61c6846f4c202cb51c58d67ac71.zip |
bml: add shared variant (#5380)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/bml/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/bml/package.py b/var/spack/repos/builtin/packages/bml/package.py index 1c91b6fff2..31bbc02070 100644 --- a/var/spack/repos/builtin/packages/bml/package.py +++ b/var/spack/repos/builtin/packages/bml/package.py @@ -36,5 +36,13 @@ class Bml(CMakePackage): version('develop', git='https://github.com/lanl/bml', branch='master') version('1.1.0', git='https://github.com/lanl/bml', tag='v1.1.0') + variant('shared', default=True, description='Build shared libs') + depends_on("blas") depends_on("lapack") + + def cmake_args(self): + return [ + '-DBUILD_SHARED_LIBS={0}'.format( + 'ON' if '+shared' in self.spec else 'OFF') + ] |