Skip to content

Commit dd5b8db

Browse files
madebrsezero
andcommitted
SDL_hidapi requires libusb >= 1.0.16
Co-authored-by: Ozkan Sezer <[email protected]>
1 parent 6ba90f7 commit dd5b8db

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.github/workflows/cpactions.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ jobs:
5151
cmake -S . -B build -GNinja \
5252
-Wdeprecated -Wdev -Werror \
5353
-DCMAKE_BUILD_TYPE=Release \
54-
-DSDL_HIDAPI_LIBUSB=OFF \
5554
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
5655
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
5756
cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`

cmake/sdlchecks.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ macro(CheckHIDAPI)
10211021
if(SDL_HIDAPI_LIBUSB)
10221022
set(HAVE_LIBUSB FALSE)
10231023

1024-
set(LibUSB_PKG_CONFIG_SPEC libusb-1.0)
1024+
set(LibUSB_PKG_CONFIG_SPEC libusb-1.0>=1.0.16)
10251025
pkg_check_modules(PC_LIBUSB IMPORTED_TARGET ${LibUSB_PKG_CONFIG_SPEC})
10261026
if(PC_LIBUSB_FOUND)
10271027
cmake_push_check_state()

0 commit comments

Comments
 (0)