FindLibXml2¶
Find the XML processing library (libxml2).
IMPORTED Targets¶
Added in version 3.12.
The following IMPORTED targets may be defined:
LibXml2::LibXml2libxml2 library.
LibXml2::xmllintAdded in version 3.17.
xmllint command-line executable.
Result variables¶
This module will set the following variables in your project:
LibXml2_FOUNDtrue if libxml2 headers and libraries were found
LIBXML2_INCLUDE_DIRthe directory containing LibXml2 headers
LIBXML2_INCLUDE_DIRSlist of the include directories needed to use LibXml2
LIBXML2_LIBRARIESLibXml2 libraries to be linked
LIBXML2_DEFINITIONSthe compiler switches required for using LibXml2
LIBXML2_XMLLINT_EXECUTABLEpath to the XML checking tool xmllint coming with LibXml2
LIBXML2_VERSION_STRINGthe version of LibXml2 found (since CMake 2.8.8)
Cache variables¶
The following cache variables may also be set:
LIBXML2_INCLUDE_DIRthe directory containing LibXml2 headers
LIBXML2_LIBRARYpath to the LibXml2 library