diff options
Diffstat (limited to 'Modules/FindPNG.cmake')
-rw-r--r-- | Modules/FindPNG.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Modules/FindPNG.cmake b/Modules/FindPNG.cmake index 387be32..861d471 100644 --- a/Modules/FindPNG.cmake +++ b/Modules/FindPNG.cmake @@ -18,9 +18,10 @@ IF(ZLIB_FOUND) /usr/include ) - FIND_LIBRARY(PNG_LIBRARY png - /usr/lib - /usr/local/lib + SET(PNG_NAMES ${PNG_NAMES} png libpng) + FIND_LIBRARY(PNG_LIBRARY + NAMES ${PNG_NAMES} + PATHS /usr/lib /usr/local/lib ) IF (PNG_LIBRARY) |