Revert "Merge pull request #13689 from ClickHouse/remove-termcap"

This reverts commit da8d8f35dd, reversing
changes made to c3d0a87b8b.
This commit is contained in:
Konstantin Podshumok 2020-08-18 20:40:04 +03:00
parent cc6a59d59b
commit d739c6a38f
No known key found for this signature in database
GPG Key ID: 7EA5D4784D5BB847
2 changed files with 9 additions and 0 deletions

View File

@ -393,6 +393,7 @@ include (cmake/find/icu.cmake)
include (cmake/find/zlib.cmake)
include (cmake/find/zstd.cmake)
include (cmake/find/ltdl.cmake) # for odbc
include (cmake/find/termcap.cmake)
# openssl, zlib before poco
include (cmake/find/sparsehash.cmake)
include (cmake/find/re2.cmake)

8
cmake/find/termcap.cmake Normal file
View File

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