forked from OSchip/llvm-project
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:
parent
62770bea4b
commit
21b16cc752
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue