bml: add shared variant (#5380)

This commit is contained in:
Christoph Junghans 2017-09-18 16:32:20 -06:00 committed by scheibelp
parent efcd8e6f7f
commit 6d8614f671

View File

@ -36,5 +36,13 @@ class Bml(CMakePackage):
version('develop', git='https://github.com/lanl/bml', branch='master') version('develop', git='https://github.com/lanl/bml', branch='master')
version('1.1.0', git='https://github.com/lanl/bml', tag='v1.1.0') 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("blas")
depends_on("lapack") depends_on("lapack")
def cmake_args(self):
return [
'-DBUILD_SHARED_LIBS={0}'.format(
'ON' if '+shared' in self.spec else 'OFF')
]