Skip to content

Update CMake config files

Markus Rickert requested to merge rickert/libxslt:cmake-config into master

This PR updates the CMake config files to match libxml2!94 (closed) and adds a libxslt-config.cmake when building with autotools.

LIBXSLT_LIBRARY and LIBXSLT_EXSLT_LIBRARY include only the path to the libxslt and libexslt libraries itself, while LIBXSLT_LIBRARIES and LIBXSLT_EXSLT_LIBRARIES also include all dependencies. LIBXSLT_INCLUDE_DIR and LIBXSLT_INCLUDE_DIRS etc. follow the same approach. Include directories are not added for link-only dependencies.

It further adds the LibXslt::xsltproc target to CMake exports with a corresponding LIBXSLT_XSLTPROC_EXECUTABLE as defined in CMake's FindLibXslt.cmake module.

A matching libxslt-config.cmake is now also built and installed when using autotools. A WITH_THREADS variable is added to be able to check for this dependency. The libxslt-config.cmake.in that was used by CMake is renamed to libxslt-config.cmake.cmake.in.

All CMake files are added to EXTRA_DIST.

Merge request reports