diff --git a/CMakeLists.txt b/CMakeLists.txt index 687bf59..1cb32a3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,7 @@ find_package(PkgConfig) if(PKG_CONFIG_FOUND) pkg_check_modules(LIBUSB libusb-1.0 IMPORTED_TARGET) + set(LIBUSB_LIBRARIES "${LIBUSB_LINK_LIBRARIES}") else() set(LIBUSB_LIBRARIES "" CACHE STRING "manual libusb path") set(LIBUSB_INCLUDE_DIRS "" CACHE STRING "manual libusb includepath")