summaryrefslogtreecommitdiffstats
path: root/Modules/FindTIFF.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-08-16 11:29:53 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-08-16 11:29:53 (GMT)
commitae31d88145d5be1fd8e0f95fff65b1d1b566064d (patch)
treea5fbf6880c119fcc76551aa1409ca68b49711ea6 /Modules/FindTIFF.cmake
parent58afad0968a2cf2a20c9f0c0da3d6c0fac4673b1 (diff)
downloadCMake-ae31d88145d5be1fd8e0f95fff65b1d1b566064d.zip
CMake-ae31d88145d5be1fd8e0f95fff65b1d1b566064d.tar.gz
CMake-ae31d88145d5be1fd8e0f95fff65b1d1b566064d.tar.bz2
ENH: add more names for libtiff, mark TIFF_INCLUDE_DIR and TIFF_LIBRARY as
advanced (sync with KDE) Alex
Diffstat (limited to 'Modules/FindTIFF.cmake')
-rw-r--r--Modules/FindTIFF.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindTIFF.cmake b/Modules/FindTIFF.cmake
index fbf8044..2868bb9 100644
--- a/Modules/FindTIFF.cmake
+++ b/Modules/FindTIFF.cmake
@@ -9,14 +9,16 @@
FIND_PATH(TIFF_INCLUDE_DIR tiff.h)
-SET(TIFF_NAMES ${TIFF_NAMES} tiff)
+SET(TIFF_NAMES ${TIFF_NAMES} tiff libtiff libtiff3)
FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
IF(TIFF_FOUND)
SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
ENDIF(TIFF_FOUND)
+
+MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY)