hidapi: Use LIBUSB_LIBRARIES to link to libusb

Because we have an old-style find script that does not define a proper
CMake target for libusb, we need to use ${LIBUSB_LIBRARIES}
rather than "usb".

Ideally, we would fix the find script to define a target. However,
this issue breaks the fifoci-ogl-lin-mesa builder and I'd prefer it
to be fixed sooner rather than later.
This commit is contained in:
Léo Lam 2021-02-11 21:58:15 +01:00
parent 1fc6fbc2c0
commit 6036680376
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 1 additions and 1 deletions

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()