mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 14:45:42 +08:00
When using curses, look for libterminfo as well. (#9794)
Supports NetBSD, where libtinfo isn't available but libterminfo is. (cherry picked from commit 67d1d80f94107e26585d192d194295180cb9f73b)
This commit is contained in:
parent
158e9b6829
commit
40b0a744e9
@ -79,6 +79,12 @@ list(APPEND CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS})
|
||||
find_library(CURSES_TINFO tinfo)
|
||||
if (CURSES_TINFO)
|
||||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${CURSES_TINFO})
|
||||
else()
|
||||
# on NetBSD, libtinfo has a longer name (libterminfo)
|
||||
find_library(CURSES_TINFO terminfo)
|
||||
if (CURSES_TINFO)
|
||||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${CURSES_TINFO})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Get threads.
|
||||
|
Loading…
x
Reference in New Issue
Block a user