summaryrefslogtreecommitdiff
path: root/Modules/FindTIFF.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-09 12:04:25 -0500
committerBrad King <brad.king@kitware.com>2006-02-09 12:04:25 -0500
commitef88c8cbc83e8d66a3e3f6c72eb50724b9cec010 (patch)
tree987ca245308e653be5097b3b2c15bf6623c2d174 /Modules/FindTIFF.cmake
parentb93a093dc4e8c37b4fb2d84a4478fe40a2b34e95 (diff)
downloadcmake-ef88c8cbc83e8d66a3e3f6c72eb50724b9cec010.tar.gz
ENH: Added names for gnuwin32 library versions.
Diffstat (limited to 'Modules/FindTIFF.cmake')
-rw-r--r--Modules/FindTIFF.cmake13
1 files changed, 9 insertions, 4 deletions
diff --git a/Modules/FindTIFF.cmake b/Modules/FindTIFF.cmake
index 00677562d5..2753c0e5b5 100644
--- a/Modules/FindTIFF.cmake
+++ b/Modules/FindTIFF.cmake
@@ -12,10 +12,15 @@ FIND_PATH(TIFF_INCLUDE_DIR tiff.h
/usr/include
)
-FIND_LIBRARY(TIFF_LIBRARY tiff
- /usr/lib
- /usr/local/lib
-)
+IF(BORLAND)
+ SET(TIFF_NAMES ${TIFF_NAMES} libtiff-bcc)
+ENDIF(BORLAND)
+SET(TIFF_NAMES ${TIFF_NAMES} tiff libtiff)
+
+FIND_LIBRARY(TIFF_LIBRARY
+ NAMES ${TIFF_NAMES}
+ PATHS /usr/lib /usr/local/lib
+ )
IF(TIFF_INCLUDE_DIR)
IF(TIFF_LIBRARY)