Skip to content

Commit

Permalink
[CMake] Fix standalone build for debugserver on macOS
Browse files Browse the repository at this point in the history
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

llvm-svn: 347869
  • Loading branch information
weliveindetail committed Nov 29, 2018
1 parent 8242c82 commit 10c1116
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lldb/tools/debugserver/CMakeLists.txt
Expand Up @@ -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)

0 comments on commit 10c1116

Please sign in to comment.