summaryrefslogtreecommitdiffstats
path: root/Modules/FindZLIB.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/FindZLIB.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/FindZLIB.cmake')
-rw-r--r--Modules/FindZLIB.cmake11
1 files changed, 8 insertions, 3 deletions
diff --git a/Modules/FindZLIB.cmake b/Modules/FindZLIB.cmake
index b96f58d..26631af 100644
--- a/Modules/FindZLIB.cmake
+++ b/Modules/FindZLIB.cmake
@@ -10,9 +10,14 @@ FIND_PATH(ZLIB_INCLUDE_DIR zlib.h
/usr/include
)
-FIND_LIBRARY(ZLIB_LIBRARY z
- /usr/lib
- /usr/local/lib
+IF(BORLAND)
+ SET(ZLIB_NAMES ${ZLIB_NAMES} zlib-bcc)
+ENDIF(BORLAND)
+SET(ZLIB_NAMES ${ZLIB_NAMES} z zlib)
+
+FIND_LIBRARY(ZLIB_LIBRARY
+ NAMES ${ZLIB_NAMES}
+ PATHS /usr/lib /usr/local/lib
)
IF(ZLIB_INCLUDE_DIR)