Skip to content

Commit

Permalink
SDL_hidapi requires libusb >= 1.0.16
Browse files Browse the repository at this point in the history
Co-authored-by: Ozkan Sezer <[email protected]>
  • Loading branch information
madebr and sezero committed Nov 24, 2023
1 parent 6ba90f7 commit dd5b8db
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/cpactions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ jobs:
cmake -S . -B build -GNinja \
-Wdeprecated -Wdev -Werror \
-DCMAKE_BUILD_TYPE=Release \
-DSDL_HIDAPI_LIBUSB=OFF \
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
Expand Down
2 changes: 1 addition & 1 deletion cmake/sdlchecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ macro(CheckHIDAPI)
if(SDL_HIDAPI_LIBUSB)
set(HAVE_LIBUSB FALSE)

set(LibUSB_PKG_CONFIG_SPEC libusb-1.0)
set(LibUSB_PKG_CONFIG_SPEC libusb-1.0>=1.0.16)
pkg_check_modules(PC_LIBUSB IMPORTED_TARGET ${LibUSB_PKG_CONFIG_SPEC})
if(PC_LIBUSB_FOUND)
cmake_push_check_state()
Expand Down

0 comments on commit dd5b8db

Please sign in to comment.