mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
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
2
Externals/hidapi/CMakeLists.txt
vendored
2
Externals/hidapi/CMakeLists.txt
vendored
@ -14,7 +14,7 @@ else()
|
|||||||
target_link_libraries(hidapi PRIVATE udev)
|
target_link_libraries(hidapi PRIVATE udev)
|
||||||
else()
|
else()
|
||||||
target_sources(hidapi PRIVATE libusb/hid.c)
|
target_sources(hidapi PRIVATE libusb/hid.c)
|
||||||
target_link_libraries(hidapi PRIVATE usb)
|
target_link_libraries(hidapi PRIVATE ${LIBUSB_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user