-add more names for libpng, so it also support libpng 1.4 on Windows (#10551)

Alex
This commit is contained in:
Alex Neundorf 2010-04-19 18:31:08 +02:00
parent 41d6430b52
commit 0dbd6e8e16
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ if(ZLIB_FOUND)
/usr/local/include/libpng # OpenBSD /usr/local/include/libpng # OpenBSD
) )
set(PNG_NAMES ${PNG_NAMES} png libpng png12 libpng12) set(PNG_NAMES ${PNG_NAMES} png libpng png14 libpng14 png14d libpng14d png12 libpng12 png12d libpng12d)
find_library(PNG_LIBRARY NAMES ${PNG_NAMES} ) find_library(PNG_LIBRARY NAMES ${PNG_NAMES} )
if (PNG_LIBRARY AND PNG_PNG_INCLUDE_DIR) if (PNG_LIBRARY AND PNG_PNG_INCLUDE_DIR)