[Lldb-commits] [PATCH 1/4] cmake build: Fix missing system libraries for OS X builds.
Kuba Ober
kuba at mareimbrium.org
Wed Mar 12 12:43:34 PDT 2014
---
source/CMakeLists.txt | 2 ++
tools/debugserver/source/CMakeLists.txt | 2 ++
2 files changed, 4 insertions(+)
diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 3083565..c562183 100644
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -167,6 +167,8 @@ if (NOT LLDB_DISABLE_PYTHON)
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
endif()
+list(APPEND LLDB_SYSTEM_LIBS ${system_libs})
+
set( LLVM_LINK_COMPONENTS
${LLVM_TARGETS_TO_BUILD}
jit
diff --git a/tools/debugserver/source/CMakeLists.txt b/tools/debugserver/source/CMakeLists.txt
index d9b4fea..05d6983 100644
--- a/tools/debugserver/source/CMakeLists.txt
+++ b/tools/debugserver/source/CMakeLists.txt
@@ -40,6 +40,8 @@ add_library(lldbDebugserverCommon
add_dependencies(lldbDebugserverCommon generate_dnbconfig)
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
+ find_library(COCOA_LIBRARY Cocoa)
+ target_link_libraries(lldbDebugserverCommon ${COCOA_LIBRARY})
add_subdirectory(MacOSX)
endif()
--
1.8.5.5
More information about the lldb-commits
mailing list