Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CMake: don't try to use the Linux joystick code on Android (thanks, M…
…artin!).

Fixes Bugzilla #3201.
  • Loading branch information
icculus committed Dec 29, 2015
1 parent 7ca3b27 commit c9927bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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})
Expand Down

0 comments on commit c9927bb

Please sign in to comment.