From: LLVM Packaging Team Date: Wed, 2 Sep 2020 11:55:46 +0000 (+0100) Subject: lldb-soname X-Git-Tag: archive/raspbian/1%10.0.1-6+rpi1^2~60 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=06ba34ec58a373a8b0084f239861aa4de3dd8362;p=llvm-toolchain-10.git lldb-soname Gbp-Pq: Name lldb-soname.diff --- diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index e0ecf29b5..18716f4cb 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -19,7 +19,12 @@ if(LLDB_BUILD_FRAMEWORK) set(option_framework FRAMEWORK) endif() -add_lldb_library(liblldb SHARED ${option_framework} +set(output_name lldb) +if (CMAKE_SYSTEM_NAME MATCHES "Windows") + set(output_name liblldb) +endif() + +add_lldb_library(liblldb SHARED OUTPUT_NAME ${output_name} SONAME SBAddress.cpp SBAttachInfo.cpp SBBlock.cpp @@ -159,7 +164,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -184,11 +189,6 @@ if ( CMAKE_SYSTEM_NAME MATCHES "Windows" ) if (MSVC AND LLDB_ENABLE_PYTHON) target_link_libraries(liblldb PRIVATE ${PYTHON_LIBRARIES}) endif() -else() - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) endif() if (NOT LLDB_BUILT_STANDALONE)