OpenBabel: Make building with GUI an option (#31456)
This commit is contained in:
parent
bb92ea59a2
commit
a12ce9fd59
@ -23,6 +23,7 @@ class Openbabel(CMakePackage):
|
||||
version('2.4.0', tag='openbabel-2-4-0')
|
||||
|
||||
variant('python', default=True, description='Build Python bindings')
|
||||
variant('gui', default=True, description='Build with GUI')
|
||||
|
||||
extends('python', when='+python')
|
||||
|
||||
@ -63,6 +64,8 @@ def cmake_args(self):
|
||||
else:
|
||||
args.append('-DPYTHON_BINDINGS=OFF')
|
||||
|
||||
args.append(self.define_from_variant('BUILD_GUI', 'gui'))
|
||||
|
||||
args.append('-DWITH_MAEPARSER=OFF') # maeparser is currently broken
|
||||
|
||||
return args
|
||||
|
Loading…
Reference in New Issue
Block a user