diff options
author | Stefan Granitz <stefan.graenitz@gmail.com> | 2018-11-29 14:51:49 +0000 |
---|---|---|
committer | Stefan Granitz <stefan.graenitz@gmail.com> | 2018-11-29 14:51:49 +0000 |
commit | 72d690154837012a980f9fd4e3dce7ce80472f87 (patch) | |
tree | 43e3d987a2335e3a13b62b5c4f54897683c233d6 /lldb/tools | |
parent | bae243202618410d254500c8a4e88e529dff2d5a (diff) |
[CMake] Fix standalone build for debugserver on macOS
Summary:
Quick-fix to avoid CMake config issue:
```
CMake Error at /path/to/lldb/cmake/modules/AddLLDB.cmake:116 (add_dependencies):
Cannot add target-level dependencies to non-existent target "lldb-suite".
```
Reviewers: xiaobai, beanz
Subscribers: mgorny, lldb-commits
Differential Revision: https://reviews.llvm.org/D55032
Diffstat (limited to 'lldb/tools')
-rw-r--r-- | lldb/tools/debugserver/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/CMakeLists.txt b/lldb/tools/debugserver/CMakeLists.txt index ae436b8f07c..58231582909 100644 --- a/lldb/tools/debugserver/CMakeLists.txt +++ b/lldb/tools/debugserver/CMakeLists.txt @@ -8,12 +8,17 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) "${CMAKE_SOURCE_DIR}/../../cmake" "${CMAKE_SOURCE_DIR}/../../cmake/modules" ) - + include(LLDBStandalone) include(AddLLDB) set(LLDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../") include_directories(${LLDB_SOURCE_DIR}/include) + + # lldb-suite is a dummy target that encompasses all the necessary tools and + # libraries for building a fully-functioning liblldb. + add_custom_target(lldb-suite) + set(LLDB_SUITE_TARGET lldb-suite) endif() add_subdirectory(source) |