diff options
Diffstat (limited to 'Modules/FindZLIB.cmake')
-rw-r--r-- | Modules/FindZLIB.cmake | 11 |
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) |