diff options
| author | Chris Bieneman <beanz@apple.com> | 2017-02-08 21:00:46 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2017-02-08 21:00:46 +0000 |
| commit | fd2f0cb170c8fe2b9b1e5b18197c8551add42701 (patch) | |
| tree | 1f87fcf37c2212d98fc687366fbf49eebb207135 /lldb/source/API | |
| parent | e7a982040bc6228301a693212db0cbf231baa599 (diff) | |
| download | bcm5719-llvm-fd2f0cb170c8fe2b9b1e5b18197c8551add42701.tar.gz bcm5719-llvm-fd2f0cb170c8fe2b9b1e5b18197c8551add42701.zip | |
[CMake] Final dependency cleanup patch!
Summary:
This patch removes the over-specified dependencies from LLDBDependencies and instead relies on the dependencies as expressed in each library and tool.
This also removes the library looping in favor of allowing CMake to do its thing. I've tested this patch on Darwin, and found no issues, but since linker semantics vary by system I'll also work on testing it on other platforms too.
Help testing would be greatly appreciated.
Reviewers: labath, zturner
Subscribers: danalbert, srhines, mgorny, jgosnell, lldb-commits
Differential Revision: https://reviews.llvm.org/D29352
llvm-svn: 294515
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index 7e1e66bee3b..ff86df5d10c 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -16,6 +16,8 @@ if (LLDB_BUILD_FRAMEWORK AND NOT APPLE) message(FATAL_ERROR "LLDB.framework cannot be generated unless targeting Apple platforms.") endif() +get_property(LLDB_ALL_PLUGINS GLOBAL PROPERTY LLDB_PLUGINS) + add_lldb_library(liblldb SHARED SBAddress.cpp SBAttachInfo.cpp @@ -80,6 +82,21 @@ add_lldb_library(liblldb SHARED SBUnixSignals.cpp SystemInitializerFull.cpp ${LLDB_WRAP_PYTHON} + + LINK_LIBS + lldbBase + lldbBreakpoint + lldbCore + lldbDataFormatters + lldbExpression + lldbHost + lldbInitialization + lldbInterpreter + lldbSymbol + lldbTarget + ${LLDB_ALL_PLUGINS} + LINK_COMPONENTS + Support ) if (LLVM_ENABLE_WERROR) |

