diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0735df2f7..62eeabfc3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -268,6 +268,7 @@ jobs: mingw-w64-${{matrix.env}}-libusb-compat-git mingw-w64-${{matrix.env}}-hidapi mingw-w64-${{matrix.env}}-libftdi + mingw-w64-${{matrix.env}}-readline - name: Configure run: >- cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 522f5059a..f384716ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,6 +125,7 @@ if(USE_STATIC_LIBS) set(PREFERRED_LIBFTDI libftdi.a ftdi) set(PREFERRED_LIBFTDI1 libftdi1.a ftdi1) set(PREFERRED_LIBREADLINE libreadline.a) + set(PREFERRED_LIBTERMCAP libtermcap.a) else() set(PREFERRED_LIBELF elf) set(PREFERRED_LIBUSB usb) @@ -227,6 +228,11 @@ elseif(MSVC) set(HAVE_LIBREADLINE 1) endif() +find_library(HAVE_LIBTERMCAP NAMES termcap) +if(HAVE_LIBTERMCAP) + set(LIB_LIBTERMCAP ${HAVE_LIBTERMCAP}) +endif() + # ===================================== # Use external libraries if requested # ===================================== diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c51214e6e..8b593f926 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -271,6 +271,7 @@ target_link_libraries(libavrdude ${LIB_LIBFTDI} ${LIB_LIBFTDI1} ${LIB_LIBREADLINE} + ${LIB_LIBTERMCAP} ${EXTRA_WINDOWS_LIBRARIES} )