mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 14:03:58 +00:00
When using curses, look for libterminfo as well. (#9794)
Supports NetBSD, where libtinfo isn't available but libterminfo is.
This commit is contained in:
parent
dec3976a1f
commit
67d1d80f94
1 changed files with 6 additions and 0 deletions
|
@ -79,6 +79,12 @@ list(APPEND CMAKE_REQUIRED_INCLUDES ${CURSES_INCLUDE_DIRS})
|
||||||
find_library(CURSES_TINFO tinfo)
|
find_library(CURSES_TINFO tinfo)
|
||||||
if (CURSES_TINFO)
|
if (CURSES_TINFO)
|
||||||
set(CURSES_LIBRARY ${CURSES_LIBRARY} ${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()
|
endif()
|
||||||
|
|
||||||
# Get threads.
|
# Get threads.
|
||||||
|
|
Loading…
Reference in a new issue