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:
parent
1fc6fbc2c0
commit
6036680376
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue