[CMake] Simplify CMake handling for libxml2
authorPetr Hosek <phosek@google.com>
Fri, 24 Jul 2020 22:47:38 +0000 (15:47 -0700)
committerPetr Hosek <phosek@google.com>
Thu, 10 Sep 2020 04:44:44 +0000 (21:44 -0700)
commitc4d7536136b331bada079b2afbb2bd09ad8296bf
tree5df20ef4a532479916ce3428a0c9a35b9c661c7e
parent52f0837778b6f3b742b36c22b7c608535a52097b
[CMake] Simplify CMake handling for libxml2

This matches the changes made to handling of zlib done in 10b1b4a
where we rely on find_package and the imported target rather than
manually appending the library and include paths. The use of
LLVM_LIBXML2_ENABLED has been replaced by LLVM_ENABLE_LIBXML2
thus reducing the number of variables.

Differential Revision: https://reviews.llvm.org/D84563
16 files changed:
lld/test/CMakeLists.txt
lld/test/lit.cfg.py
lld/test/lit.site.cfg.py.in
llvm/cmake/config-ix.cmake
llvm/cmake/modules/GetLibraryName.cmake [new file with mode: 0644]
llvm/cmake/modules/LLVMConfig.cmake.in
llvm/include/llvm/Config/config.h.cmake
llvm/lib/Support/CMakeLists.txt
llvm/lib/WindowsManifest/CMakeLists.txt
llvm/lib/WindowsManifest/WindowsManifestMerger.cpp
llvm/test/CMakeLists.txt
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in
llvm/utils/gn/secondary/lld/test/BUILD.gn
llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
llvm/utils/gn/secondary/llvm/test/BUILD.gn