babelflow: Add spec (#20544)

This commit is contained in:
Tomoyasu Nojiri 2020-12-25 07:54:24 +09:00 committed by GitHub
parent cfbe3aa056
commit b1a6e583c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,7 @@ class Babelflow(CMakePackage):
variant("shared", default=True, description="Build Babelflow as shared libs")
def cmake_args(self):
spec = self.spec
args = [
'-DBUILD_SHARED_LIBS:BOOL={0}'.format(
'ON' if '+shared' in spec else 'OFF')]