cmake: Respect ENABLE_HIDAPI option (#1604)
Some checks failed
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Failing after 2m36s

This commit is contained in:
capitalistspz 2025-06-20 12:32:41 +01:00 committed by GitHub
parent 4f4412b334
commit 057ef4598e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 9 deletions

View file

@ -166,7 +166,7 @@ if (UNIX AND NOT APPLE)
if(ENABLE_BLUEZ)
find_package(bluez REQUIRED)
set(ENABLE_WIIMOTE ON)
set(SUPPORTS_WIIMOTE ON)
add_compile_definitions(HAS_BLUEZ)
endif()
@ -188,7 +188,7 @@ endif()
if (ENABLE_HIDAPI)
find_package(hidapi REQUIRED)
set(ENABLE_WIIMOTE ON)
set(SUPPORTS_WIIMOTE ON)
add_compile_definitions(HAS_HIDAPI)
endif ()