Skip to content

FindZLIB: more library names + option to prefer static library

Peter Würth requested to merge petwu/cmake:findzlib-static into master

Adds additional library names zlibstat[d] and zlibvc[d] for Windows, when zlib is built using one of the Visual Studio solutions under zlib/contrib/vstudio.

Adds a ZLIB_USE_STATIC_LIBS option that is equivilent to similar settings in other modules such as FindProtobuf, FindOpenSSL, etc.

Implements #18029 (closed) and #23140 (closed)

Merge request reports