hosted: Fixed issues finding and linking HIDAPI on MacOS

This commit is contained in:
dragonmux 2022-06-11 19:03:06 -04:00 committed by Piotr Esden-Tempski
parent 7846112a7b
commit 7180a5b9a2
1 changed files with 2 additions and 2 deletions

View File

@ -40,9 +40,9 @@ LDFLAGS += -lsetupapi
#https://github.com/dmlc/xgboost/issues/1945 indicates macosx as indicator
else ifneq (filter, macosx darwin, $(SYS))
SRC += serial_unix.c
LDFLAGS += -lhidapi
LDFLAGS += $(pkg-config --libs hidapi)
LDFLAGS += -framework CoreFoundation
CFLAGS += -Ihidapi/hidapi
CFLAGS += -Ihidapi/hidapi $(pkg-config --cflags hidapi)
HIDAPILIB = hidapi
endif