Skip to content

Commit

Permalink
CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources
Browse files Browse the repository at this point in the history
.. so that there won't be missing symbols.
TODO: add checks for SDL_JOYSTICK_MFI ???
  • Loading branch information
sezero committed Nov 24, 2020
1 parent 7a05dbf commit 711d409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Expand Up @@ -1652,6 +1652,8 @@ elseif(APPLE)
set(HAVE_SDL_SENSORS 1)
else()
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
# FIXME: add checks for SDL_JOYSTICK_MFI???
set(SDL_JOYSTICK_IOKIT 1)
set(SDL_FRAMEWORK_IOKIT 1)
set(SDL_FRAMEWORK_FF 1)
Expand Down

0 comments on commit 711d409

Please sign in to comment.