[Lldb-commits] [PATCH] D36358: [lldb] [cmake] Add explicit linkage from Core to curses
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Aug 5 13:49:51 PDT 2017
mgorny updated this revision to Diff 109897.
mgorny edited the summary of this revision.
mgorny added a comment.
Updated to explicitly respect LLDB_DISABLE_CURSES and the LLVM HAVE_TERMINFO logic.
https://reviews.llvm.org/D36358
Files:
source/Core/CMakeLists.txt
Index: source/Core/CMakeLists.txt
===================================================================
--- source/Core/CMakeLists.txt
+++ source/Core/CMakeLists.txt
@@ -1,3 +1,12 @@
+set(LLDB_CURSES_LIBS)
+
+if (NOT LLDB_DISABLE_CURSES)
+ list(APPEND LLDB_CURSES_LIBS ${CURSES_LIBRARIES})
+ if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO)
+ list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIBS})
+ endif()
+endif()
+
add_lldb_library(lldbCore
Address.cpp
AddressRange.cpp
@@ -62,6 +71,7 @@
lldbPluginCPlusPlusLanguage
lldbPluginObjCLanguage
lldbPluginObjectFileJIT
+ ${LLDB_CURSES_LIBS}
LINK_COMPONENTS
BinaryFormat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36358.109897.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170805/cf37d71b/attachment.bin>
More information about the lldb-commits
mailing list