opencv : Add zlib cmake support
This commit is contained in:
parent
e5ae48a9da
commit
670157b364
1 changed files with 9 additions and 0 deletions
|
@ -100,6 +100,15 @@ def install(self, spec, prefix):
|
|||
'ON' if '+java' in spec else 'OFF')),
|
||||
])
|
||||
|
||||
zlib = spec['zlib']
|
||||
cmake_options.extend([
|
||||
'-DZLIB_LIBRARY_{0}:FILEPATH={1}'.format((
|
||||
'DEBUG' if '+debug' in spec else 'RELEASE'),
|
||||
join_path(zlib.prefix.lib,
|
||||
'libz.{0}'.format(dso_suffix))),
|
||||
'-DZLIB_INCLUDE_DIR:PATH={0}'.format(zlib.prefix.include)
|
||||
])
|
||||
|
||||
libpng = spec['libpng']
|
||||
cmake_options.extend([
|
||||
'-DPNG_LIBRARY_{0}:FILEPATH={1}'.format((
|
||||
|
|
Loading…
Reference in a new issue