From 603668037665582af498e474697ecc1df3cf04d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 11 Feb 2021 21:58:15 +0100 Subject: [PATCH] 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. --- Externals/hidapi/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Externals/hidapi/CMakeLists.txt b/Externals/hidapi/CMakeLists.txt index 1fca3d8334..42b16d9f01 100644 --- a/Externals/hidapi/CMakeLists.txt +++ b/Externals/hidapi/CMakeLists.txt @@ -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()