Add LIB_LIBHID to CMake project to fix MinGW build issue

This commit is contained in:
Marius Greuel 2022-02-18 19:52:53 +01:00
parent 7b79b72794
commit e31be88ce0
2 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,9 @@ endif()
# Find libhidapi
find_library(HAVE_LIBHID NAMES hid)
if(HAVE_LIBHID)
set(LIB_LIBHID ${HAVE_LIBHID})
endif()
find_library(HAVE_LIBHIDAPI NAMES ${PREFERRED_LIBHIDAPI})
if(HAVE_LIBHIDAPI)

View File

@ -239,6 +239,7 @@ target_link_libraries(libavrdude
${LIB_LIBELF}
${LIB_LIBUSB}
${LIB_LIBUSB_1_0}
${LIB_LIBHID}
${LIB_LIBHIDAPI}
${LIB_LIBFTDI}
${LIB_LIBFTDI1}