opencv : Fix cmake not disabling gtk

This commit is contained in:
mwilliammyers 2016-07-15 20:19:23 -06:00
parent 0080ffcf9f
commit 3fac2dcc41

View file

@ -87,7 +87,10 @@ def install(self, spec, prefix):
'-DWITH_QT:BOOL=%s' % ('ON' if '+qt' in spec else 'OFF'),
'-DWITH_VTK:BOOL=%s' % ('ON' if '+vtk' in spec else 'OFF')])
if '^gtkplus@3:' in spec:
if '+gtk' not in spec:
cmake_options.extend(['-DWITH_GTK:BOOL=OFF',
'-DWITH_GTK_2_X:BOOL=OFF'])
elif '^gtkplus@3:' in spec:
cmake_options.extend(['-DWITH_GTK:BOOL=ON',
'-DWITH_GTK_2_X:BOOL=OFF'])
elif '^gtkplus@2:3' in spec: