[Lldb-commits] [lldb] r347869 - [CMake] Fix standalone build for debugserver on macOS

Stefan Granitz via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 29 06:51:49 PST 2018


Author: stefan.graenitz
Date: Thu Nov 29 06:51:49 2018
New Revision: 347869

URL: http://llvm.org/viewvc/llvm-project?rev=347869&view=rev
Log:
[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

Modified:
    lldb/trunk/tools/debugserver/CMakeLists.txt

Modified: lldb/trunk/tools/debugserver/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/debugserver/CMakeLists.txt?rev=347869&r1=347868&r2=347869&view=diff
==============================================================================
--- lldb/trunk/tools/debugserver/CMakeLists.txt (original)
+++ lldb/trunk/tools/debugserver/CMakeLists.txt Thu Nov 29 06:51:49 2018
@@ -8,12 +8,17 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
     "${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)




More information about the lldb-commits mailing list