[all-commits] [llvm/llvm-project] ac0ea7: [clang-tools-extra] Fix linking when built with CL...

Martin Storsjö via All-commits all-commits at lists.llvm.org
Sat Jun 3 13:26:05 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ac0ea7555ee4ae872bcd153e04513ba0b88b8985
  Author: Martin Storsjö <martin at martin.st>
  Date:   2023-06-03 (Sat, 03 Jun 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/CMakeLists.txt

  Log Message:
  [clang-tools-extra] Fix linking when built with CLANG_LINK_CLANG_DYLIB=ON

clangIncludeCleaner isn't part of libclang-cpp, so link it with
target_link_libraries instead of clang_target_link_libraries.

This fixes a regression from

Fix suggested by Michal Gorny.

More information about the All-commits mailing list