[Lldb-commits] [PATCH] D119186: [lldb][gdb-remote] Fix linking of gdb-remote when LLVM_ENABLE_ZLIB is ON
Mariusz Ceier via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 7 13:43:01 PST 2022
mceier created this revision.
mceier added a reviewer: LLVM.
Herald added a subscriber: mgorny.
mceier requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
When LLVM_ENABLE_ZLIB is ON gdb-remote should link with ZLIB::ZLIB.
Fixes https://reviews.llvm.org/D119058#3301524
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119186
Files:
lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
Index: lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
===================================================================
--- lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
+++ lldb/source/Plugins/Process/gdb-remote/CMakeLists.txt
@@ -15,6 +15,10 @@
set(LIBCOMPRESSION compression)
endif()
+if(LLVM_ENABLE_ZLIB)
+ set(imported_libs ZLIB::ZLIB)
+endif()
+
add_lldb_library(lldbPluginProcessGDBRemote PLUGIN
GDBRemoteClientBase.cpp
GDBRemoteCommunication.cpp
@@ -39,6 +43,7 @@
lldbSymbol
lldbTarget
lldbUtility
+ ${imported_libs}
${LLDB_PLUGINS}
${LIBCOMPRESSION}
LINK_COMPONENTS
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119186.406595.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220207/9fa73415/attachment.bin>
More information about the lldb-commits
mailing list