From 12e4a96b37a5fabcc98dc4b9f8567aa12005079a Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Thu, 16 Jun 2022 11:00:08 +0100 Subject: [PATCH] lldb-soname Gbp-Pq: Name lldb-soname.diff --- lldb/source/API/CMakeLists.txt | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt index 2e33f5c05c..0c4deef03f 100644 --- a/lldb/source/API/CMakeLists.txt +++ b/lldb/source/API/CMakeLists.txt @@ -19,7 +19,12 @@ if(LLDB_ENABLE_LUA) set(lldb_lua_wrapper ${lua_bindings_dir}/LLDBWrapLua.cpp) 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 @@ -162,7 +167,7 @@ endif() set_target_properties(liblldb PROPERTIES - VERSION ${LLDB_VERSION} + VERSION 1 ) if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") @@ -181,12 +186,12 @@ if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") set_target_properties(liblldb_exports PROPERTIES FOLDER "lldb misc") endif() -if (NOT MSVC) - set_target_properties(liblldb - PROPERTIES - OUTPUT_NAME lldb - ) -endif() +#if (NOT MSVC) +# set_target_properties(liblldb +# PROPERTIES +# OUTPUT_NAME lldb +# ) +#endif() # The Clang expression parser in LLDB requires the Clang resource directory to function. if (TARGET clang-resource-headers) -- 2.30.2