Favor tinfo or bundled ncurses

This commit is contained in:
Amos Bird 2019-11-12 22:37:33 +08:00
parent 1d910c5071
commit dc390be385
No known key found for this signature in database
GPG Key ID: 80D430DCBECFEDB4

View File

@ -1,5 +1,8 @@
find_library (TERMCAP_LIBRARY termcap)
find_library (TERMCAP_LIBRARY tinfo)
if (NOT TERMCAP_LIBRARY)
find_library (TERMCAP_LIBRARY tinfo)
find_library (TERMCAP_LIBRARY ncurses)
endif()
if (NOT TERMCAP_LIBRARY)
find_library (TERMCAP_LIBRARY termcap)
endif()
message (STATUS "Using termcap: ${TERMCAP_LIBRARY}")