Index: source/Core/CMakeLists.txt =================================================================== --- source/Core/CMakeLists.txt +++ source/Core/CMakeLists.txt @@ -69,6 +69,7 @@ LINK_COMPONENTS Support Demangle + ${LLDB_SYSTEM_LIBS} ) # Needed to properly resolve references in a debug build. Index: source/Host/CMakeLists.txt =================================================================== --- source/Host/CMakeLists.txt +++ source/Host/CMakeLists.txt @@ -48,6 +48,7 @@ add_host_subdirectory(common common/Editline.cpp ) + list(APPEND EXTRA_LIBS edit) endif() add_host_subdirectory(posix @@ -160,7 +161,7 @@ endif() if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") - set(EXTRA_LIBS kvm) + list(APPEND EXTRA_LIBS kvm) endif () add_lldb_library(lldbHost