OpenBabel: Make building with GUI an option (#31456)

This commit is contained in:
Tamara Dahlgren 2022-07-07 09:43:17 -07:00 committed by GitHub
parent bb92ea59a2
commit a12ce9fd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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