autotools, cmake: don't define SDL_JOYSTICK_HIDAPI in CheckHIDAPI()

This commit is contained in:
Ozkan Sezer
2021-11-16 23:37:20 +03:00
parent 5cc23868ed
commit 68ffd24c58
3 changed files with 7 additions and 17 deletions

View File

@@ -1172,8 +1172,6 @@ macro(CheckHIDAPI)
file(GLOB HIDAPI_JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/hidapi/*.c)
set(SOURCE_FILES ${SOURCE_FILES} ${HIDAPI_JOYSTICK_SOURCES})
endif()
else()
set(SDL_HIDAPI_DISABLED 1)
endif()
endmacro()