summaryrefslogtreecommitdiffstats
path: root/Modules/FindPNG.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-09 17:04:25 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-09 17:04:25 (GMT)
commitef88c8cbc83e8d66a3e3f6c72eb50724b9cec010 (patch)
tree987ca245308e653be5097b3b2c15bf6623c2d174 /Modules/FindPNG.cmake
parentb93a093dc4e8c37b4fb2d84a4478fe40a2b34e95 (diff)
downloadCMake-ef88c8cbc83e8d66a3e3f6c72eb50724b9cec010.zip
CMake-ef88c8cbc83e8d66a3e3f6c72eb50724b9cec010.tar.gz
CMake-ef88c8cbc83e8d66a3e3f6c72eb50724b9cec010.tar.bz2
ENH: Added names for gnuwin32 library versions.
Diffstat (limited to 'Modules/FindPNG.cmake')
-rw-r--r--Modules/FindPNG.cmake7
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)