From 190c79bb4e6bc8b8757bd890485a9bafb4a65219 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 5 Sep 2013 01:25:03 +0200 Subject: Use the newer syntax in FindDocBook* It approprietly sets the _FOUND variables, we were defining the all uppercase instead. Sorry for the mess! CCMAIL: neundorf@kde.org --- find-modules/FindDocBookXML.cmake | 4 ++-- find-modules/FindDocBookXSL.cmake | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/find-modules/FindDocBookXML.cmake b/find-modules/FindDocBookXML.cmake index b59d209e..b6d623e4 100644 --- a/find-modules/FindDocBookXML.cmake +++ b/find-modules/FindDocBookXML.cmake @@ -48,8 +48,8 @@ endif () include(FindPackageHandleStandardArgs) find_package_handle_standard_args (DocBookXML - "Could NOT find DocBook XML DTDs (v${DocBookXML_CURRENTDTD_VERSION})" - DocBookXML_CURRENTDTD_DIR DocBookXML_CURRENTDTD_VERSION) + REQUIRED_VARS DocBookXML_CURRENTDTD_DIR DocBookXML_CURRENTDTD_VERSION + FOUND_VAR DocBookXML_FOUND) #maintain backwards compatibility set(DOCBOOKXML_FOUND ${DocBookXML_FOUND}) diff --git a/find-modules/FindDocBookXSL.cmake b/find-modules/FindDocBookXSL.cmake index ffe90ca3..a7320aed 100644 --- a/find-modules/FindDocBookXSL.cmake +++ b/find-modules/FindDocBookXSL.cmake @@ -46,8 +46,8 @@ endif () include(FindPackageHandleStandardArgs) find_package_handle_standard_args (DocBookXSL - "Could NOT find DocBook XSL stylesheets" - DocBookXSL_DIR) + REQUIRED_VARS DocBookXSL_DIR + FOUND_VAR DocBookXSL_FOUND) #maintain backwards compatibility set(DOCBOOKXSL_FOUND ${DocBookXSL_FOUND}) -- cgit v1.2.1