aboutsummaryrefslogtreecommitdiff
path: root/modules/FindLibXslt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindLibXslt.cmake')
-rw-r--r--modules/FindLibXslt.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/FindLibXslt.cmake b/modules/FindLibXslt.cmake
index f84f4c26..f951693f 100644
--- a/modules/FindLibXslt.cmake
+++ b/modules/FindLibXslt.cmake
@@ -5,7 +5,7 @@
# LIBXSLT_INCLUDE_DIR - the LibXslt include directory
# LIBXSLT_LIBRARIES - Link these to LibXslt
# LIBXSLT_DEFINITIONS - Compiler switches required for using LibXslt
-# XSLTPROC_EXECUTABLE - path to the xsltproc tool
+# LIBXSLT_XSLTPROC_EXECUTABLE - path to the xsltproc tool
# Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
#
@@ -46,7 +46,9 @@ ELSE (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES)
SET(LIBXSLT_FOUND FALSE)
ENDIF (LIBXSLT_INCLUDE_DIR AND LIBXSLT_LIBRARIES)
-FIND_PROGRAM(XSLTPROC_EXECUTABLE xsltproc)
+FIND_PROGRAM(LIBEXSLT_XSLTPROC_EXECUTABLE xsltproc)
+# For compatibility with FindLibXslt.cmake from KDE 4.[01].x
+SET(XSLTPROC_EXECUTABLE ${LIBEXSLT_XSLTPROC_EXECUTABLE})
IF (LIBXSLT_FOUND)
IF (NOT LibXslt_FIND_QUIETLY)
@@ -58,5 +60,5 @@ ELSE (LIBXSLT_FOUND)
ENDIF (LibXslt_FIND_REQUIRED)
ENDIF (LIBXSLT_FOUND)
-MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES LIBEXSLT_LIBRARIES XSLTPROC_EXECUTABLE)
+MARK_AS_ADVANCED(LIBXSLT_INCLUDE_DIR LIBXSLT_LIBRARIES LIBEXSLT_LIBRARIES LIBEXSLT_XSLTPROC_EXECUTABLE)