From kde-commits Tue Mar 04 22:33:46 2014 From: Alex Merry Date: Tue, 04 Mar 2014 22:33:46 +0000 To: kde-commits Subject: [kde4support] cmake: Use the newer syntax in FindDocBook* Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=139397386828067 Git commit 48a9ac16d3c0a624b9e4a4bc250fca8d300782cd by Alex Merry, on behal= f of Aleix Pol. Committed on 04/09/2013 at 23:25. Pushed by ltoscano 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 Commit ee71d477120c9d029c439fbed6e5df9d3b939f5a in kdoctools M +2 -2 cmake/FindDocBookXML.cmake http://commits.kde.org/kde4support/48a9ac16d3c0a624b9e4a4bc250fca8d300782cd 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})