From 711d4090325d0f20af28802ab6e5beb41b48b413 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 24 Nov 2020 14:10:30 +0300 Subject: [PATCH] CMakeLists.txt: add src/joystick/iphoneos/*.m to Darwin joystick sources .. so that there won't be missing symbols. TODO: add checks for SDL_JOYSTICK_MFI ??? --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18b2e5aad..0768836ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)