[lldb] Fix linking to libtinfo (#69458)

LLVM detects when ncurses has a separate terminfo library, but linking to it
was broken in lldb since b66339575a (LLVM14)
due to a change of variables. This commit fixes that oversight.
This commit is contained in:
Harmen Stoppels
2023-10-18 17:06:50 +02:00
committed by GitHub
parent 1b93e15bcd
commit 0a9bdc276d

View File

@@ -12,7 +12,7 @@ set(LLDB_LIBEDIT_LIBS)
if (LLDB_ENABLE_CURSES)
list(APPEND LLDB_CURSES_LIBS ${PANEL_LIBRARIES} ${CURSES_LIBRARIES})
if(LLVM_ENABLE_TERMINFO)
list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIB})
list(APPEND LLDB_CURSES_LIBS ${Terminfo_LIBRARIES})
endif()
if (LLVM_BUILD_STATIC)
list(APPEND LLDB_CURSES_LIBS gpm)