From 9fc8b732737f139d3e466510d75668ab45578960 Mon Sep 17 00:00:00 2001 From: manuel Date: Tue, 8 Mar 2016 21:02:53 +0100 Subject: sync with upstream --- project/cmake/modules/FindXslt.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 project/cmake/modules/FindXslt.cmake (limited to 'project/cmake/modules/FindXslt.cmake') diff --git a/project/cmake/modules/FindXslt.cmake b/project/cmake/modules/FindXslt.cmake new file mode 100644 index 0000000..442ba43 --- /dev/null +++ b/project/cmake/modules/FindXslt.cmake @@ -0,0 +1,18 @@ +# - Try to find XSLT +# Once done this will define +# +# XSLT_FOUND - system has libxslt +# XSLT_INCLUDE_DIRS - the libxslt include directory +# XSLT_LIBRARIES - The libxslt libraries + +if(PKG_CONFIG_FOUND) + pkg_check_modules (XSLT libxslt) +else() + find_path(XSLT_INCLUDE_DIRS libxslt/xslt.h) + find_library(XSLT_LIBRARIES NAMES xslt libxslt) +endif() + +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(Xslt DEFAULT_MSG XSLT_INCLUDE_DIRS XSLT_LIBRARIES) + +mark_as_advanced(XSLT_INCLUDE_DIRS XSLT_LIBRARIES) -- cgit v1.2.3