aboutsummaryrefslogtreecommitdiff
path: root/source/Core/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/CMakeLists.txt')
-rw-r--r--source/Core/CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/Core/CMakeLists.txt b/source/Core/CMakeLists.txt
index c5105bd9ab12..c345afb4064a 100644
--- a/source/Core/CMakeLists.txt
+++ b/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 @@ add_lldb_library(lldbCore
lldbPluginCPlusPlusLanguage
lldbPluginObjCLanguage
lldbPluginObjectFileJIT
+ ${LLDB_CURSES_LIBS}
LINK_COMPONENTS
BinaryFormat