opencv : Add libtiff cmake support

This commit is contained in:
mwilliammyers 2016-07-18 16:30:31 -06:00
parent d3b97227a1
commit 97143768c8

View file

@ -99,6 +99,14 @@ def install(self, spec, prefix):
'ON' if '+java' in spec else 'OFF')),
])
libtiff = spec['libtiff']
cmake_options.extend([
'-DTIFF_LIBRARY_{0}:FILEPATH={1}'.format((
'DEBUG' if '+debug' in spec else 'RELEASE'),
join_path(libtiff.prefix.lib, 'libtiff.so')),
'-DTIFF_INCLUDE_DIR:PATH={0}'.format(libtiff.prefix.include)
])
if '+gtk' not in spec:
cmake_options.extend([
'-DWITH_GTK:BOOL=OFF',