aboutsummaryrefslogtreecommitdiff
path: root/source/Host
diff options
context:
space:
mode:
Diffstat (limited to 'source/Host')
-rw-r--r--source/Host/CMakeLists.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/source/Host/CMakeLists.txt b/source/Host/CMakeLists.txt
index 2ee599cf43a2..1696e7eab6ea 100644
--- a/source/Host/CMakeLists.txt
+++ b/source/Host/CMakeLists.txt
@@ -156,9 +156,23 @@ if (${get_python_libdir})
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}