| Summary: | libusb isn't detected correctly in CMake | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sven-Hendrik Haase <svenstaro> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | svenstaro |
| Version: | HG 2.1 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | suggested patch | ||
Patch added, thanks! https://hg.libsdl.org/SDL/rev/9385c4d35e57 |
Created attachment 4401 [details] suggested patch In CMake I currently have trouble activating hidapi support as libusb-1.0 isn't ever correctly detected as it's searched for by the wrong name. configure.ac correctly does this: PKG_CHECK_MODULES([LIBUSB], [libusb-1.0], have_libusb=yes, have_libusb=no) However, sdlchecks.cmake does this: pkg_check_modules(LIBUSB libusb) but it needs to be: pkg_check_modules(LIBUSB libusb-1.0)