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,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)