[clang-tools-extra] r352843 - [clangd] clangDaemonTweaks - fix -DBUILD_SHARED_LIBS=ON build

Roman Lebedev via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 1 00:58:37 PST 2019


Author: lebedevri
Date: Fri Feb  1 00:58:37 2019
New Revision: 352843

URL: http://llvm.org/viewvc/llvm-project?rev=352843&view=rev
Log:
[clangd] clangDaemonTweaks - fix -DBUILD_SHARED_LIBS=ON build

Followup for rL352841.

Modified:
    clang-tools-extra/trunk/clangd/refactor/tweaks/CMakeLists.txt

Modified: clang-tools-extra/trunk/clangd/refactor/tweaks/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/refactor/tweaks/CMakeLists.txt?rev=352843&r1=352842&r2=352843&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/refactor/tweaks/CMakeLists.txt (original)
+++ clang-tools-extra/trunk/clangd/refactor/tweaks/CMakeLists.txt Fri Feb  1 00:58:37 2019
@@ -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_SOUR
 # clangd/tool/CMakeLists.txt for an example.
 add_clang_library(clangDaemonTweaks OBJECT
   SwapIfBranches.cpp
+
+  LINK_LIBS
+  clangAST
+  clangDaemon
+  clangToolingCore
   )




More information about the cfe-commits mailing list