diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/bml/package.py')
-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') + ] |