CMake: don't try to use the Linux joystick code on Android (thanks, Martin!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 29 Dec 2015 00:24:37 -0500
changeset 9980 224187458d03
parent 9979 e3d651c5fe31
child 9981 a443c97eb294
CMake: don't try to use the Linux joystick code on Android (thanks, Martin!). Fixes Bugzilla #3201.
CMakeLists.txt
--- a/CMakeLists.txt	Tue Dec 29 00:02:43 2015 -0500
+++ b/CMakeLists.txt	Tue Dec 29 00:24:37 2015 -0500
@@ -826,7 +826,7 @@
 
   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})