Skip to content

Commit

Permalink
CMake: Add ncurses library when readline is present
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusgreuel committed Jan 20, 2023
1 parent c98a49b commit 61dccf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ target_link_libraries(libavrdude
${LIB_LIBFTDI}
${LIB_LIBFTDI1}
${LIB_LIBREADLINE}
${LIB_NCURSES}
${EXTRA_WINDOWS_LIBRARIES}
)

Expand Down

0 comments on commit 61dccf4

Please sign in to comment.