llvm-project/lldb/tools/driver/CMakeLists.txt
Zachary Turner 030b8cb413 Resubmit "[CMake] Change lldbAPI to be a CMake OBJECT library."
This resubmits r230380.  The primary cause of the failure was
actually just a warning, which we can disable at the CMake level
in a followup patch on the LLVM side.  The other thing which was
actually an error on the bot should be able to be fixed with
a clean.

llvm-svn: 230389
2015-02-24 22:17:57 +00:00

20 lines
459 B
CMake

set(LLVM_NO_RTTI 1)
add_lldb_executable(lldb
Driver.cpp
Platform.cpp
)
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
add_definitions( -DIMPORT_LIBLLDB )
endif()
target_link_libraries(lldb liblldb)
# TODO: why isn't this done by add_lldb_executable?
#target_link_libraries(lldb ${LLDB_USED_LIBS})
#llvm_config(lldb ${LLVM_LINK_COMPONENTS})
set_target_properties(lldb PROPERTIES VERSION ${LLDB_VERSION})
install(TARGETS lldb
RUNTIME DESTINATION bin)