[Lldb-commits] [lldb] [lldb] Add terminfo dependency for ncurses support (PR #126810)
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Fri Feb 14 17:00:56 PST 2025
================
@@ -2,23 +2,54 @@
# FindCursesAndPanel
# -----------
#
-# Find the curses and panel library as a whole.
+# Find the curses, terminfo, and panel library as a whole.
-if(CURSES_INCLUDE_DIRS AND CURSES_LIBRARIES AND PANEL_LIBRARIES)
+include(CMakePushCheckState)
+
+function(lldb_check_curses_tinfo CURSES_LIBRARIES CURSES_HAS_TINFO)
+ cmake_reset_check_state()
+ set(CMAKE_REQUIRED_LIBRARIES "${CURSES_LIBRARIES}")
----------------
JDevlieghere wrote:
Fair enough, I didn't really consider the care of someone else having a `curses.h` but this would definitely make this module more hermetic. Thanks for explaining 👍
https://github.com/llvm/llvm-project/pull/126810
More information about the lldb-commits
mailing list