-add more names for libpng, so it also support libpng 1.4 on Windows (#10551)
Alex
This commit is contained in:
parent
41d6430b52
commit
0dbd6e8e16
|
@ -33,7 +33,7 @@ if(ZLIB_FOUND)
|
|||
/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} )
|
||||
|
||||
if (PNG_LIBRARY AND PNG_PNG_INCLUDE_DIR)
|
||||
|
|
Loading…
Reference in New Issue