[clangd] clangDaemonTweaks - fix -DBUILD_SHARED_LIBS=ON build

Followup for rL352841.

llvm-svn: 352843
This commit is contained in:
Roman Lebedev 2019-02-01 08:58:37 +00:00
parent f3e00fe35d
commit 3440c33989
1 changed files with 9 additions and 0 deletions

View File

@ -1,5 +1,9 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..)
set(LLVM_LINK_COMPONENTS
support
)
# A target containing all code tweaks (i.e. mini-refactorings) provided by
# clangd.
# Built as an object library to make sure linker does not remove global
@ -9,4 +13,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../..)
# clangd/tool/CMakeLists.txt for an example.
add_clang_library(clangDaemonTweaks OBJECT
SwapIfBranches.cpp
LINK_LIBS
clangAST
clangDaemon
clangToolingCore
)