Support Library Libxml2¶
The support library libxml2 will (by default) be built
in version 2.9.7, as controllable by the CMake cache variables
LIBXML2_VERSION, LIBXML2_URL and LIBXML2_HASH.
Dependencies¶
Libxml2 depends on the other support library libiconv. It has no other (special) build dependencies.
Remarks¶
Older versions of libxml2 required patching the code to be C89 compatible to successfully compile with Visual Studio. New versions already contain the fix.
For compiling an old version of libxml2, just uncomment the respective line
in the top level CMakeLists.txt of the DCMTK Support Libaries project
to automatically apply the patch provided as
patches/Libxml2FixC89Compatibility.patch during build. In this case
PATCH_COMMAND will be required for building libxml2.