SDL_hidapi requires libusb >= 1.0.16
Co-authored-by: Ozkan Sezer <sezeroz@gmail.com>main
parent
6ba90f7775
commit
dd5b8db3a6
|
@ -51,7 +51,6 @@ jobs:
|
||||||
cmake -S . -B build -GNinja \
|
cmake -S . -B build -GNinja \
|
||||||
-Wdeprecated -Wdev -Werror \
|
-Wdeprecated -Wdev -Werror \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
-DSDL_HIDAPI_LIBUSB=OFF \
|
|
||||||
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
|
-DSDL_CHECK_REQUIRED_INCLUDES="/usr/local/include" \
|
||||||
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
|
-DSDL_CHECK_REQUIRED_LINK_OPTIONS="-L/usr/local/lib"
|
||||||
cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
|
cmake --build build/ --config Release --verbose -- -j`sysctl -n hw.ncpu`
|
||||||
|
|
|
@ -1021,7 +1021,7 @@ macro(CheckHIDAPI)
|
||||||
if(SDL_HIDAPI_LIBUSB)
|
if(SDL_HIDAPI_LIBUSB)
|
||||||
set(HAVE_LIBUSB FALSE)
|
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})
|
pkg_check_modules(PC_LIBUSB IMPORTED_TARGET ${LibUSB_PKG_CONFIG_SPEC})
|
||||||
if(PC_LIBUSB_FOUND)
|
if(PC_LIBUSB_FOUND)
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
|
|
Loading…
Reference in New Issue