sgraenitz created this revision.
sgraenitz added reviewers: xiaobai, beanz.
Herald added a subscriber: mgorny.

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".


https://reviews.llvm.org/D55032

Files:
  tools/debugserver/CMakeLists.txt


Index: tools/debugserver/CMakeLists.txt
===================================================================
--- tools/debugserver/CMakeLists.txt
+++ tools/debugserver/CMakeLists.txt
@@ -15,6 +15,11 @@
   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)
+
   option(LLDB_USE_ENTITLEMENTS "When code signing, use entitlements if 
available" ON)
   set(LLDB_CODESIGN_IDENTITY lldb_codesign CACHE STRING
       "Identity for code signing debugserver (Darwin only)")


Index: tools/debugserver/CMakeLists.txt
===================================================================
--- tools/debugserver/CMakeLists.txt
+++ tools/debugserver/CMakeLists.txt
@@ -15,6 +15,11 @@
   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)
+
   option(LLDB_USE_ENTITLEMENTS "When code signing, use entitlements if available" ON)
   set(LLDB_CODESIGN_IDENTITY lldb_codesign CACHE STRING
       "Identity for code signing debugserver (Darwin only)")
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to