hidapi macos fix

This commit is contained in:
Jason Rhinelander 2022-04-14 17:49:57 -03:00
parent 7bc2a0aa7e
commit 5d42ae4c4d
No known key found for this signature in database
GPG Key ID: C4992CE7A88D4262
1 changed files with 2 additions and 0 deletions

View File

@ -558,6 +558,8 @@ else()
set(hidapi_links "libusb_vendor;libudev")
if(WIN32)
list(APPEND hidapi_links setupapi)
elseif(APPLE)
list(APPEND hidapi_links "-framework AppKit")
endif()
set_target_properties(hidapi_libusb PROPERTIES
INTERFACE_LINK_LIBRARIES "${hidapi_links}"