Skip to content

Commit a12ce9f

Browse files
authored
OpenBabel: Make building with GUI an option (#31456)
1 parent bb92ea5 commit a12ce9f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • var/spack/repos/builtin/packages/openbabel

var/spack/repos/builtin/packages/openbabel/package.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class Openbabel(CMakePackage):
2323
version('2.4.0', tag='openbabel-2-4-0')
2424

2525
variant('python', default=True, description='Build Python bindings')
26+
variant('gui', default=True, description='Build with GUI')
2627

2728
extends('python', when='+python')
2829

@@ -63,6 +64,8 @@ def cmake_args(self):
6364
else:
6465
args.append('-DPYTHON_BINDINGS=OFF')
6566

67+
args.append(self.define_from_variant('BUILD_GUI', 'gui'))
68+
6669
args.append('-DWITH_MAEPARSER=OFF') # maeparser is currently broken
6770

6871
return args

0 commit comments

Comments
 (0)