[Lldb-commits] [PATCH] D36885: [cmake] Explicitly link dependency libraries in the Host library

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 21 10:43:59 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL311354: [cmake] Explicitly link dependency libraries in the Host library (authored by mgorny).

Changed prior to commit:
  https://reviews.llvm.org/D36885?vs=111708&id=112016#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D36885

Files:
  lldb/trunk/source/Host/CMakeLists.txt


Index: lldb/trunk/source/Host/CMakeLists.txt
===================================================================
--- lldb/trunk/source/Host/CMakeLists.txt
+++ lldb/trunk/source/Host/CMakeLists.txt
@@ -156,9 +156,23 @@
   endif()
 endif()
 
+set(EXTRA_LIBS)
 if (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
- set(EXTRA_LIBS kvm)
+  list(APPEND EXTRA_LIBS kvm)
 endif ()
+if (APPLE)
+  list(APPEND EXTRA_LIBS xml2)
+else ()
+  if (LIBXML2_FOUND)
+    list(APPEND EXTRA_LIBS ${LIBXML2_LIBRARIES})
+  endif()
+endif ()
+if (HAVE_LIBDL)
+  list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS})
+endif()
+if (NOT LLDB_DISABLE_LIBEDIT)
+  list(APPEND EXTRA_LIBS edit)
+endif()
 
 add_lldb_library(lldbHost
   ${HOST_SOURCES}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36885.112016.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170821/906f4033/attachment.bin>


More information about the lldb-commits mailing list