bml: add shared variant (#5380)
This commit is contained in:
parent
efcd8e6f7f
commit
6d8614f671
@ -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')
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user