From c9927bbb17992938753a499d5bb93d9862165b6d Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 29 Dec 2015 00:24:37 -0500 Subject: [PATCH] CMake: don't try to use the Linux joystick code on Android (thanks, Martin!). Fixes Bugzilla #3201. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b10111919d16c..38ce0d7f65604 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -826,7 +826,7 @@ elseif(UNIX AND NOT APPLE) if(SDL_JOYSTICK) CheckUSBHID() # seems to be BSD specific - limit the test to BSD only? - if(LINUX) + if(LINUX AND NOT ANDROID) set(SDL_JOYSTICK_LINUX 1) file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/linux/*.c) set(SOURCE_FILES ${SOURCE_FILES} ${JOYSTICK_SOURCES})