opencv : Fix cmake not disabling gtk
This commit is contained in:
parent
0080ffcf9f
commit
3fac2dcc41
1 changed files with 4 additions and 1 deletions
|
@ -87,7 +87,10 @@ def install(self, spec, prefix):
|
||||||
'-DWITH_QT:BOOL=%s' % ('ON' if '+qt' in spec else 'OFF'),
|
'-DWITH_QT:BOOL=%s' % ('ON' if '+qt' in spec else 'OFF'),
|
||||||
'-DWITH_VTK:BOOL=%s' % ('ON' if '+vtk' 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',
|
cmake_options.extend(['-DWITH_GTK:BOOL=ON',
|
||||||
'-DWITH_GTK_2_X:BOOL=OFF'])
|
'-DWITH_GTK_2_X:BOOL=OFF'])
|
||||||
elif '^gtkplus@2:3' in spec:
|
elif '^gtkplus@2:3' in spec:
|
||||||
|
|
Loading…
Reference in a new issue