link libhidapi if required

This commit is contained in:
Jethro Grassie 2019-11-12 11:33:28 -05:00
parent de089698d2
commit 9c6ef738f1
No known key found for this signature in database
GPG key ID: DE8ED755616565BB

View file

@ -115,6 +115,12 @@ else
boost_serialization boost_program_options
endif
HID_FOUND := $(shell grep -qo HIDAPI_LIBRARY-NOTFOUND \
${MONERO_BUILD_ROOT}/CMakeCache.txt; echo $$?)
ifeq ($(HID_FOUND), 1)
LIBS += hidapi-libusb
endif
PKG_LIBS := $(shell pkg-config \
"libevent >= 2.1" \
json-c \