Append missing version number to lldb binary built by cmake

- now, the output binary is called 'lldb-3.4' instead of 'lldb'
- a symlink 'lldb' -> 'lldb-3.4' is also created
- this fixes one of the problems preventing CMake from building Debian packages

llvm-svn: 182148
This commit is contained in:
Daniel Malea 2013-05-17 18:51:03 +00:00
parent 62770bea4b
commit 21b16cc752
2 changed files with 7 additions and 0 deletions

View File

@ -147,6 +147,11 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
"`CMakeFiles'. Please delete them.")
endif()
# Compute the LLDB version from the LLVM version.
string(REGEX MATCH "[0-9]+\\.[0-9]+(\\.[0-9]+)?" LLDB_VERSION
${PACKAGE_VERSION})
message(STATUS "LLDB version: ${LLDB_VERSION}")
macro(add_lldb_library name)
llvm_process_sources(srcs ${ARGN})
if (MSVC_IDE OR XCODE)

View File

@ -12,5 +12,7 @@ target_link_libraries(lldb liblldb)
#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)