opencv : Add zlib cmake support

This commit is contained in:
mwilliammyers 2016-07-18 17:50:54 -06:00
parent e5ae48a9da
commit 670157b364

View file

@ -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((