summaryrefslogtreecommitdiffstats
path: root/Modules/FindTIFF.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-07-18 17:56:45 (GMT)
commitb5f656e0de6e39f0fd935203e0ef2b4231af733d (patch)
tree8b58020cca8fef8af4df6ae631fddf49e3230049 /Modules/FindTIFF.cmake
parente118a62709fdc84e6c5b5b8d0bb055895d206ec9 (diff)
downloadCMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.zip
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.gz
CMake-b5f656e0de6e39f0fd935203e0ef2b4231af733d.tar.bz2
ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS in some of the FindXXX
modules, remove some of the extra search paths which are also searched by default Alex
Diffstat (limited to 'Modules/FindTIFF.cmake')
-rw-r--r--Modules/FindTIFF.cmake23
1 files changed, 9 insertions, 14 deletions
diff --git a/Modules/FindTIFF.cmake b/Modules/FindTIFF.cmake
index 111b8d4..e2ca1fe 100644
--- a/Modules/FindTIFF.cmake
+++ b/Modules/FindTIFF.cmake
@@ -7,21 +7,16 @@
# also defined, but not for general use are
# TIFF_LIBRARY, where to find the TIFF library.
-FIND_PATH(TIFF_INCLUDE_DIR tiff.h
- /usr/local/include
- /usr/include
-)
+FIND_PATH(TIFF_INCLUDE_DIR tiff.h)
SET(TIFF_NAMES ${TIFF_NAMES} tiff)
-FIND_LIBRARY(TIFF_LIBRARY
- NAMES ${TIFF_NAMES}
- PATHS /usr/lib /usr/local/lib
- )
+FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
-IF(TIFF_INCLUDE_DIR)
- IF(TIFF_LIBRARY)
- SET( TIFF_FOUND "YES" )
- SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
- ENDIF(TIFF_LIBRARY)
-ENDIF(TIFF_INCLUDE_DIR)
+# 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 TIFF_LIBRARY TIFF_INCLUDE_DIR)
+IF(TIFF_FOUND)
+ SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
+ENDIF(TIFF_FOUND)