Skip to content

Update CMake config files

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

This PR updates the CMake config files for both autotools and CMake itself.

It adds LibXml2::LibXml2 and LibXml2::xmllint targets as well as additional variables LIBXML2_LIBRARY, LIBXML2_INCLUDE_DIR, LIBXML2_DEFINITIONS and LIBXML2_XMLLINT_EXECUTABLE defined in CMake's FindLibXml2.cmake module.

LIBXML2_LIBRARY includes only the path to the libxml2 library itself, while LIBXML2_LIBRARIES also includes all dependencies. LIBXML2_INCLUDE_DIR and LIBXML2_INCLUDE_DIRS follow the same approach.

See #207 (closed).

Merge request reports