mirror of
https://github.com/mariusgreuel/avrdude.git
synced 2025-09-27 14:35:27 +00:00
Add LIB_LIBHID to CMake project to fix MinGW build issue
This commit is contained in:
@@ -182,6 +182,9 @@ endif()
|
|||||||
# Find libhidapi
|
# Find libhidapi
|
||||||
|
|
||||||
find_library(HAVE_LIBHID NAMES hid)
|
find_library(HAVE_LIBHID NAMES hid)
|
||||||
|
if(HAVE_LIBHID)
|
||||||
|
set(LIB_LIBHID ${HAVE_LIBHID})
|
||||||
|
endif()
|
||||||
|
|
||||||
find_library(HAVE_LIBHIDAPI NAMES ${PREFERRED_LIBHIDAPI})
|
find_library(HAVE_LIBHIDAPI NAMES ${PREFERRED_LIBHIDAPI})
|
||||||
if(HAVE_LIBHIDAPI)
|
if(HAVE_LIBHIDAPI)
|
||||||
|
@@ -239,6 +239,7 @@ target_link_libraries(libavrdude
|
|||||||
${LIB_LIBELF}
|
${LIB_LIBELF}
|
||||||
${LIB_LIBUSB}
|
${LIB_LIBUSB}
|
||||||
${LIB_LIBUSB_1_0}
|
${LIB_LIBUSB_1_0}
|
||||||
|
${LIB_LIBHID}
|
||||||
${LIB_LIBHIDAPI}
|
${LIB_LIBHIDAPI}
|
||||||
${LIB_LIBFTDI}
|
${LIB_LIBFTDI}
|
||||||
${LIB_LIBFTDI1}
|
${LIB_LIBFTDI1}
|
||||||
|
Reference in New Issue
Block a user