yoda: only depend on root if explicitly desired (#25087)

This commit is contained in:
Thomas Madlener 2021-07-26 13:50:00 +02:00 committed by GitHub
parent cef3a2a6ee
commit 4a19741a36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,9 +88,8 @@ class Yoda(AutotoolsPackage):
def configure_args(self): def configure_args(self):
args = [] args = []
if self.spec.satisfies('@:1.6.0'): if self.spec.satisfies('@:1.6.0'):
args += '--with-boost=' + self.spec['boost'].prefix args.append('--with-boost=' + self.spec['boost'].prefix)
if '+root' in self.spec: args.extend(self.enable_or_disable('root'))
args += '--enable-root'
return args return args