diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-07-18 17:56:45 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-07-18 17:56:45 (GMT) |
commit | b5f656e0de6e39f0fd935203e0ef2b4231af733d (patch) | |
tree | 8b58020cca8fef8af4df6ae631fddf49e3230049 /Modules/FindLibXslt.cmake | |
parent | e118a62709fdc84e6c5b5b8d0bb055895d206ec9 (diff) | |
download | CMake-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/FindLibXslt.cmake')
-rw-r--r-- | Modules/FindLibXslt.cmake | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/Modules/FindLibXslt.cmake b/Modules/FindLibXslt.cmake index fcebd0c..338f87a 100644 --- a/Modules/FindLibXslt.cmake +++ b/Modules/FindLibXslt.cmake @@ -34,21 +34,12 @@ FIND_LIBRARY(LIBXSLT_LIBRARIES NAMES xslt libxslt ${_LibXsltLinkDir} ) -IF (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) - SET(LIBXSLT_FOUND TRUE) -ELSE (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) - SET(LIBXSLT_FOUND FALSE) -ENDIF (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES) - -IF (LIBXSLT_FOUND) - IF (NOT LibXslt_FIND_QUIETLY) - MESSAGE(STATUS "Found LibXslt: ${LIBXSLT_LIBRARIES}") - ENDIF (NOT LibXslt_FIND_QUIETLY) -ELSE (LIBXSLT_FOUND) - IF (LibXslt_FIND_REQUIRED) - MESSAGE(FATAL_ERROR "Could NOT find LibXslt") - ENDIF (LibXslt_FIND_REQUIRED) -ENDIF (LIBXSLT_FOUND) +INCLUDE(FindPackageHandleStandardArgs) + +# handle the QUIETLY and REQUIRED arguments and set LIBXML2_FOUND to TRUE if +# all listed variables are TRUE +FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibXslt LIBXSLT_LIBRARIES LIBXSLT_INCLUDE_DIR) + MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES) |