--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -530,11 +530,8 @@ else() else() find_package(Curses REQUIRED) find_package(ZLIB REQUIRED) - if (CURSES_EXTRA_LIBRARY) - # this contains the tinfo library, if found - target_link_libraries(${PROJECT_NAME} ${CURSES_EXTRA_LIBRARY}) - endif() - target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${CURSES_CURSES_LIBRARY}) + set(CURSES_NEED_NCURSES ON) + target_link_libraries(${PROJECT_NAME} pthread ${ZLIB_LIBRARIES} ${CURSES_LIBRARIES}) endif() endif()