[Lldb-commits] [PATCH] D26190: [RFC] Solve linking inconsistency, proposal two

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 3 04:01:57 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL285894: Link lldb-mi only to the llvm components it uses (authored by labath).

Changed prior to commit:
  https://reviews.llvm.org/D26190?vs=76554&id=76833#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D26190

Files:
  lldb/trunk/tools/lldb-mi/CMakeLists.txt


Index: lldb/trunk/tools/lldb-mi/CMakeLists.txt
===================================================================
--- lldb/trunk/tools/lldb-mi/CMakeLists.txt
+++ lldb/trunk/tools/lldb-mi/CMakeLists.txt
@@ -1,5 +1,3 @@
-include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake)
-
 set(LLDB_MI_SOURCES
   MICmdArgContext.cpp
   MICmdArgSet.cpp
@@ -83,15 +81,16 @@
     )
 endif ()
 
+# We need to include the llvm components we depend on manually, as liblldb does
+# not re-export those.
+set(LLVM_LINK_COMPONENTS Support)
 add_lldb_executable(lldb-mi ${LLDB_MI_SOURCES})
 
 target_link_libraries(lldb-mi liblldb)
 if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
   target_link_libraries(lldb-mi pthread)
 endif ()
 
-llvm_config(lldb-mi ${LLVM_LINK_COMPONENTS})
-
 set_target_properties(lldb-mi PROPERTIES VERSION ${LLDB_VERSION})
 
 install(TARGETS lldb-mi


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26190.76833.patch
Type: text/x-patch
Size: 858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20161103/d7224d9b/attachment.bin>


More information about the lldb-commits mailing list