[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdoctools] cmake: Use the newer syntax in FindDocBook*
From:       Alex Merry <kde () randomguy3 ! me ! uk>
Date:       2014-02-21 11:21:01
Message-ID: E1WGoA9-00064I-Uo () scm ! kde ! org
[Download RAW message or body]

Git commit ee71d477120c9d029c439fbed6e5df9d3b939f5a by Alex Merry, on behal=
f of Aleix Pol.
Committed on 04/09/2013 at 23:25.
Pushed by alexmerry into branch 'master'.

Use the newer syntax in FindDocBook*

It approprietly sets the _FOUND variables, we were defining the all
uppercase instead.
Sorry for the mess!

Originally commit 190c79bb4e6bc8b8757bd890485a9bafb4a65219 of the
extra-cmake-modules repository

REVIEW: 115896

M  +2    -2    cmake/FindDocBookXML.cmake
M  +2    -2    cmake/FindDocBookXSL.cmake

http://commits.kde.org/kdoctools/ee71d477120c9d029c439fbed6e5df9d3b939f5a

diff --git a/cmake/FindDocBookXML.cmake b/cmake/FindDocBookXML.cmake
index b59d209..b6d623e 100644
--- a/cmake/FindDocBookXML.cmake
+++ b/cmake/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/cmake/FindDocBookXSL.cmake b/cmake/FindDocBookXSL.cmake
index ffe90ca..a7320ae 100644
--- a/cmake/FindDocBookXSL.cmake
+++ b/cmake/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})

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic