diff options
| author | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2016-03-08 21:02:53 +0100 |
| commit | 9fc8b732737f139d3e466510d75668ab45578960 (patch) | |
| tree | 76db9bf5cb8cc869be908a5ed3d6f4cca3e3608a /project/cmake/modules/FindXslt.cmake | |
| parent | b75e2659df11c23aa921d2eed83c23adc282ed27 (diff) | |
| download | kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.gz kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.tar.bz2 kodi-pvr-build-9fc8b732737f139d3e466510d75668ab45578960.zip | |
sync with upstream
Diffstat (limited to 'project/cmake/modules/FindXslt.cmake')
| -rw-r--r-- | project/cmake/modules/FindXslt.cmake | 18 |
1 files changed, 18 insertions, 0 deletions
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 @@ | |||
| 1 | # - Try to find XSLT | ||
| 2 | # Once done this will define | ||
| 3 | # | ||
| 4 | # XSLT_FOUND - system has libxslt | ||
| 5 | # XSLT_INCLUDE_DIRS - the libxslt include directory | ||
| 6 | # XSLT_LIBRARIES - The libxslt libraries | ||
| 7 | |||
| 8 | if(PKG_CONFIG_FOUND) | ||
| 9 | pkg_check_modules (XSLT libxslt) | ||
| 10 | else() | ||
| 11 | find_path(XSLT_INCLUDE_DIRS libxslt/xslt.h) | ||
| 12 | find_library(XSLT_LIBRARIES NAMES xslt libxslt) | ||
| 13 | endif() | ||
| 14 | |||
| 15 | include(FindPackageHandleStandardArgs) | ||
| 16 | find_package_handle_standard_args(Xslt DEFAULT_MSG XSLT_INCLUDE_DIRS XSLT_LIBRARIES) | ||
| 17 | |||
| 18 | mark_as_advanced(XSLT_INCLUDE_DIRS XSLT_LIBRARIES) | ||
