diff --git a/CMakeLists.txt b/CMakeLists.txt index d468919a..4b880db4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,7 @@ endif() find_library(HAVE_LIBREADLINE NAMES ${PREFERRED_LIBREADLINE}) if(HAVE_LIBREADLINE) set(LIB_LIBREADLINE ${HAVE_LIBREADLINE}) + find_library(LIB_NCURSES NAMES ncurses) elseif(MSVC) set(HAVE_LIBREADLINE 1) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3a87ffa9..6b227f30 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -271,6 +271,7 @@ target_link_libraries(libavrdude ${LIB_LIBFTDI} ${LIB_LIBFTDI1} ${LIB_LIBREADLINE} + ${LIB_NCURSES} ${EXTRA_WINDOWS_LIBRARIES} )