opencv : Add libtiff cmake support
This commit is contained in:
parent
d3b97227a1
commit
97143768c8
1 changed files with 8 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue