Merge pull request #9501 from leoetlino/hidapi-libusb

hidapi: Use LIBUSB_LIBRARIES to link to libusb
This commit is contained in:
Léo Lam 2021-02-12 12:37:45 +01:00 committed by GitHub
commit c5ee86c75c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ else()
target_link_libraries(hidapi PRIVATE udev)
else()
target_sources(hidapi PRIVATE libusb/hid.c)
target_link_libraries(hidapi PRIVATE usb)
target_link_libraries(hidapi PRIVATE ${LIBUSB_LIBRARIES})
endif()
endif()