[all-commits] [llvm/llvm-project] 3bff90: [clang-tools-extra] Fix linking ClangdTests when u...

Michał Górny via All-commits all-commits at lists.llvm.org
Fri Mar 24 12:25:58 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bff90e7e84aad6f0fddaf1d17a7db011052b95d
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2023-03-24 (Fri, 24 Mar 2023)

  Changed paths:
    M clang-tools-extra/clangd/unittests/CMakeLists.txt

  Log Message:
  [clang-tools-extra] Fix linking ClangdTests when using libclang-cpp

Fix linking ClangdTests to specify the dependency on the private
clangTesting library via target_link_libraries() rather than
clang_target_link_libraries().  The latter uses libclang-cpp when
CLANG_LINK_CLANG_DYLIB is used, and clangTesting is not included
in this library.

This fixes d60d3455eb2b375d026a4aa74c4ba0c38f5d323c.

Differential Revision: https://reviews.llvm.org/D146427

More information about the All-commits mailing list