aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-07-20 22:14:42 +0000
committerAlexander Neundorf <neundorf@kde.org>2008-07-20 22:14:42 +0000
commit5f61200948e3f19a0eab2c9678ad76c130ec6df8 (patch)
tree9ebab5c7e842c30e2e5b30693bf269389a37b821
parent760e338ee29066253a2036c221c5b4c8e7fe8df8 (diff)
downloadextra-cmake-modules-5f61200948e3f19a0eab2c9678ad76c130ec6df8.tar.gz
extra-cmake-modules-5f61200948e3f19a0eab2c9678ad76c130ec6df8.tar.bz2
-rename variable XMLLINT_EXECUTABLE to LIBXML2_XMLLINT_EXECUTABLE, to be consistent with the cmake module coding style (keep the old one for compatibility)
-adapt config-kdoctools.h.cmake accordingly Alex svn path=/branches/KDE/4.1/kdelibs/; revision=835658
-rw-r--r--modules/FindLibXml2.cmake17
1 files changed, 10 insertions, 7 deletions
diff --git a/modules/FindLibXml2.cmake b/modules/FindLibXml2.cmake
index 5f23c184..bbe5e8b2 100644
--- a/modules/FindLibXml2.cmake
+++ b/modules/FindLibXml2.cmake
@@ -1,10 +1,11 @@
# - Try to find LibXml2
# Once done this will define
#
-# LIBXML2_FOUND - system has LibXml2
-# LIBXML2_INCLUDE_DIR - the LibXml2 include directory
-# LIBXML2_LIBRARIES - the libraries needed to use LibXml2
+# LIBXML2_FOUND - System has LibXml2
+# LIBXML2_INCLUDE_DIR - The LibXml2 include directory
+# LIBXML2_LIBRARIES - The libraries needed to use LibXml2
# LIBXML2_DEFINITIONS - Compiler switches required for using LibXml2
+# LIBXML2_XMLLINT_EXECUTABLE - The XML checking tool xmllint coming with LibXml2
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
@@ -42,11 +43,13 @@ ELSE (LIBXML2_INCLUDE_DIR AND LIBXML2_LIBRARIES)
SET(LIBXML2_FOUND FALSE)
ENDIF (LIBXML2_INCLUDE_DIR AND LIBXML2_LIBRARIES)
-FIND_PROGRAM(XMLLINT_EXECUTABLE xmllint)
+FIND_PROGRAM(LIBXML2_XMLLINT_EXECUTABLE xmllint)
+# for backwards compat. with KDE 4.0.x:
+SET(XMLLINT_EXECUTABLE "${LIBXML2_XMLLINT_EXECUTABLE}")
-if( NOT XMLLINT_EXECUTABLE )
+IF( NOT LIBXML2_XMLLINT_EXECUTABLE )
MESSAGE(STATUS "xmllint program not found. Install it if you want validate generated doc file.")
-endif(NOT XMLLINT_EXECUTABLE )
+ENDIF(NOT LIBXML2_XMLLINT_EXECUTABLE )
IF (LIBXML2_FOUND)
IF (NOT LibXml2_FIND_QUIETLY)
@@ -58,5 +61,5 @@ ELSE (LIBXML2_FOUND)
ENDIF (LibXml2_FIND_REQUIRED)
ENDIF (LIBXML2_FOUND)
-MARK_AS_ADVANCED(LIBXML2_INCLUDE_DIR LIBXML2_LIBRARIES XMLLINT_EXECUTABLE)
+MARK_AS_ADVANCED(LIBXML2_INCLUDE_DIR LIBXML2_LIBRARIES LIBXML2_XMLLINT_EXECUTABLE)