FindZLIB: Add more zlib library names

Account for all names that can be generated by the upstream zlib build
system.

Issue: #18029
This commit is contained in:
Alexander Neumann 2019-05-28 05:51:11 -04:00 committed by Brad King
parent e13b18e2c7
commit 4ff3ab2ac9

View File

@ -67,8 +67,8 @@ set(_ZLIB_SEARCH_NORMAL
unset(_ZLIB_x86)
list(APPEND _ZLIB_SEARCHES _ZLIB_SEARCH_NORMAL)
set(ZLIB_NAMES z zlib zdll zlib1)
set(ZLIB_NAMES_DEBUG zlibd zlibd1)
set(ZLIB_NAMES z zlib zdll zlib1 zlibstatic)
set(ZLIB_NAMES_DEBUG zd zlibd zdlld zlibd1 zlib1d zlibstaticd)
# Try each search configuration.
foreach(search ${_ZLIB_SEARCHES})