Fix for lldb-platform linking error on OSX/CMake

Tested on Linux and OSX

Submitted for Bob Campbell

llvm-svn: 225611
This commit is contained in:
Vince Harron 2015-01-11 18:38:25 +00:00
parent 0c9c0c5a6d
commit 88f67808ae
1 changed files with 6 additions and 0 deletions

View File

@ -22,8 +22,14 @@ add_lldb_executable(lldb-platform
lldb-platform.cpp
../../source/lldb-log.cpp
../../source/lldb.cpp
${LLDB_WRAP_PYTHON}
${LLDB_VERS_GENERATED_FILE}
)
if (LLDB_WRAP_PYTHON OR LLDB_VERS_GENERATED_FILE)
add_dependencies(lldb-platform swig_wrapper)
endif()
# The Darwin linker doesn't understand --start-group/--end-group.
if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT "${CMAKE_SYSTEM_NAME}" MATCHES "Darwin")
target_link_libraries(lldb-platform