FindPNG: Add static libpng names for MSVC

Add names produced by the png upstream buildsystem for static
libraries with MSVC.
This commit is contained in:
Steve Robinson 2019-07-12 19:17:50 -07:00 committed by Brad King
parent a2319c04f6
commit 95f8b0aec7

View File

@ -69,8 +69,8 @@ if(ZLIB_FOUND)
unset(_PNG_VERSION_SUFFIX_MIN)
endif ()
foreach(v IN LISTS _PNG_VERSION_SUFFIXES)
list(APPEND PNG_NAMES png${v} libpng${v})
list(APPEND PNG_NAMES_DEBUG png${v}d libpng${v}d)
list(APPEND PNG_NAMES png${v} libpng${v} libpng${v}_static)
list(APPEND PNG_NAMES_DEBUG png${v}d libpng${v}d libpng${v}_staticd)
endforeach()
unset(_PNG_VERSION_SUFFIXES)
# For compatibility with versions prior to this multi-config search, honor