summaryrefslogtreecommitdiffstats
path: root/Modules/FindLibXslt.cmake
diff options
context:
space:
mode:
authorMarkus Rickert <rickert@fortiss.org>2020-04-28 15:45:41 (GMT)
committerMarkus Rickert <rickert@fortiss.org>2020-04-28 17:12:18 (GMT)
commitdd506714f40c16d922ad5f78f3fcf0bdd78a5d02 (patch)
tree50ffb3b395af08c5ec86cbaaf62df4ae8d972560 /Modules/FindLibXslt.cmake
parentd9eb9e785e9873a7b034aec667bd808d34f1a907 (diff)
downloadCMake-dd506714f40c16d922ad5f78f3fcf0bdd78a5d02.zip
CMake-dd506714f40c16d922ad5f78f3fcf0bdd78a5d02.tar.gz
CMake-dd506714f40c16d922ad5f78f3fcf0bdd78a5d02.tar.bz2
FindLibXslt: identify libexslt include directory
Diffstat (limited to 'Modules/FindLibXslt.cmake')
-rw-r--r--Modules/FindLibXslt.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/FindLibXslt.cmake b/Modules/FindLibXslt.cmake
index 01a9d8b..4f366a5 100644
--- a/Modules/FindLibXslt.cmake
+++ b/Modules/FindLibXslt.cmake
@@ -21,6 +21,8 @@ Once done this will define
Additionally, the following two variables are set (but not required
for using xslt):
+``LIBXSLT_EXSLT_INCLUDE_DIR``
+ The include directory for exslt.
``LIBXSLT_EXSLT_LIBRARIES``
Link to these if you need to link against the exslt library.
``LIBXSLT_XSLTPROC_EXECUTABLE``
@@ -45,10 +47,23 @@ find_library(LIBXSLT_LIBRARIES NAMES xslt libxslt
${PC_LIBXSLT_LIBRARY_DIRS}
)
+set(LIBXSLT_LIBRARIES ${LIBXSLT_LIBRARY})
+
+PKG_CHECK_MODULES(PC_LIBXSLT_EXSLT QUIET libexslt)
+set(LIBXSLT_EXSLT_DEFINITIONS ${PC_LIBXSLT_EXSLT_CFLAGS_OTHER})
+
+find_path(LIBXSLT_EXSLT_INCLUDE_DIR NAMES libexslt/exslt.h
+ HINTS
+ ${PC_LIBXSLT_EXSLT_INCLUDEDIR}
+ ${PC_LIBXSLT_EXSLT_INCLUDE_DIRS}
+)
+
find_library(LIBXSLT_EXSLT_LIBRARY NAMES exslt libexslt
HINTS
${PC_LIBXSLT_LIBDIR}
${PC_LIBXSLT_LIBRARY_DIRS}
+ ${PC_LIBXSLT_EXSLT_LIBDIR}
+ ${PC_LIBXSLT_EXSLT_LIBRARY_DIRS}
)
set(LIBXSLT_EXSLT_LIBRARIES ${LIBXSLT_EXSLT_LIBRARY} )