ENH: add more names for libtiff, mark TIFF_INCLUDE_DIR and TIFF_LIBRARY as

advanced (sync with KDE)

Alex
This commit is contained in:
Alexander Neundorf 2008-08-16 07:29:53 -04:00
parent 58afad0968
commit ae31d88145
1 changed files with 4 additions and 2 deletions

View File

@ -9,7 +9,7 @@
FIND_PATH(TIFF_INCLUDE_DIR tiff.h) 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} ) FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
@ -20,3 +20,5 @@ FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR
IF(TIFF_FOUND) IF(TIFF_FOUND)
SET( TIFF_LIBRARIES ${TIFF_LIBRARY} ) SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
ENDIF(TIFF_FOUND) ENDIF(TIFF_FOUND)
MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY)