mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-29 09:30:52 +02:00
CMakeLists.txt: switch prio between hidapi-libusb and hidapi-hidraw: fix detection issue on WSL2 with cmsisdap (#413)
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user