diff options
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) |