[all-commits] [llvm/llvm-project] c4d753: [CMake] Simplify CMake handling for libxml2

Petr Hosek via All-commits all-commits at lists.llvm.org
Wed Sep 9 21:45:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c4d7536136b331bada079b2afbb2bd09ad8296bf
      https://github.com/llvm/llvm-project/commit/c4d7536136b331bada079b2afbb2bd09ad8296bf
  Author: Petr Hosek <phosek at google.com>
  Date:   2020-09-09 (Wed, 09 Sep 2020)

  Changed paths:
    M lld/test/CMakeLists.txt
    M lld/test/lit.cfg.py
    M lld/test/lit.site.cfg.py.in
    M llvm/cmake/config-ix.cmake
    A llvm/cmake/modules/GetLibraryName.cmake
    M llvm/cmake/modules/LLVMConfig.cmake.in
    M llvm/include/llvm/Config/config.h.cmake
    M llvm/lib/Support/CMakeLists.txt
    M llvm/lib/WindowsManifest/CMakeLists.txt
    M llvm/lib/WindowsManifest/WindowsManifestMerger.cpp
    M llvm/test/CMakeLists.txt
    M llvm/test/lit.cfg.py
    M llvm/test/lit.site.cfg.py.in
    M llvm/utils/gn/secondary/lld/test/BUILD.gn
    M llvm/utils/gn/secondary/llvm/include/llvm/Config/BUILD.gn
    M llvm/utils/gn/secondary/llvm/test/BUILD.gn

  Log Message:
  -----------
  [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




More information about the All-commits mailing list