Index: tools/lldb-mi/CMakeLists.txt =================================================================== --- tools/lldb-mi/CMakeLists.txt +++ tools/lldb-mi/CMakeLists.txt @@ -1,5 +1,3 @@ -include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake) - set(LLDB_MI_SOURCES MICmdArgContext.cpp MICmdArgSet.cpp @@ -83,6 +81,11 @@ ) endif () +# liblldb already contains a copy of the llvm support library. However, it is not +# a part of the interface provided by liblldb, so we need to include our own +# copy. We need to be careful to never pass llvm objects across SO boundary. +# This should be fine, as lldb SB API does not (by design) depend on llvm. +set(LLVM_LINK_COMPONENTS Support) add_lldb_executable(lldb-mi ${LLDB_MI_SOURCES}) target_link_libraries(lldb-mi liblldb) @@ -90,8 +93,6 @@ target_link_libraries(lldb-mi pthread) endif () -llvm_config(lldb-mi ${LLVM_LINK_COMPONENTS}) - set_target_properties(lldb-mi PROPERTIES VERSION ${LLDB_VERSION}) install(TARGETS lldb-mi