diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c481b3..8ad3121 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,10 +48,10 @@ if (USE_PKGCONFIG) find_package(PkgConfig REQUIRED) pkg_check_modules(LIBFTDI REQUIRED libftdi1) pkg_check_modules(LIBUSB REQUIRED libusb-1.0) - pkg_check_modules(HIDAPI hidapi-hidraw) - # if hidraw not found try with libusb + pkg_check_modules(HIDAPI hidapi-libusb) + # if libusb not found try with hidraw if (NOT HIDAPI_FOUND) - pkg_check_modules(HIDAPI hidapi-libusb) + pkg_check_modules(HIDAPI hidapi-hidraw) endif() if (NOT HIDAPI_FOUND) pkg_check_modules(HIDAPI hidapi)