mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
No longer try to use standalone termcap
This commit is contained in:
parent
002f2327fe
commit
7efc429276
@ -53,33 +53,21 @@ if(NOT DEFINED ENV{SKIP_UNITTEST})
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(CheckLibraryExists)
|
include(CheckLibraryExists)
|
||||||
check_library_exists(termcap tgetent "" HAVE_LIBTERMCAP)
|
check_library_exists(curses tgetent "" HAVE_LIBCURSES)
|
||||||
|
if (HAVE_LIBCURSES)
|
||||||
if (HAVE_LIBTERMCAP)
|
|
||||||
|
|
||||||
if(NOT DEFINED ENV{SKIP_EXEC})
|
if(NOT DEFINED ENV{SKIP_EXEC})
|
||||||
target_link_libraries(nvim termcap)
|
target_link_libraries(nvim curses)
|
||||||
endif()
|
endif()
|
||||||
if(NOT DEFINED ENV{SKIP_UNITTEST})
|
if(NOT DEFINED ENV{SKIP_UNITTEST})
|
||||||
target_link_libraries(nvim-test termcap)
|
target_link_libraries(nvim-test curses)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
check_library_exists(curses tgetent "" HAVE_LIBCURSES)
|
find_package(Curses REQUIRED)
|
||||||
if (HAVE_LIBCURSES)
|
if(NOT DEFINED ENV{SKIP_EXEC})
|
||||||
if(NOT DEFINED ENV{SKIP_EXEC})
|
target_link_libraries(nvim ${CURSES_LIBRARIES})
|
||||||
target_link_libraries(nvim curses)
|
endif()
|
||||||
endif()
|
if(DEFINED ENV{SKIP_UNITTEST})
|
||||||
if(NOT DEFINED ENV{SKIP_UNITTEST})
|
target_link_libraries(nvim-test ${CURSES_LIBRARIES})
|
||||||
target_link_libraries(nvim-test curses)
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
find_package(Curses REQUIRED)
|
|
||||||
if(NOT DEFINED ENV{SKIP_EXEC})
|
|
||||||
target_link_libraries(nvim ${CURSES_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
if(DEFINED ENV{SKIP_UNITTEST})
|
|
||||||
target_link_libraries(nvim-test ${CURSES_LIBRARIES})
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user