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

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

No files matched your search

-2
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()