From 22275b35e4074ddc3136d89868c19b466d1bb9f8 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 20 Dec 2020 21:55:02 +0300 Subject: [PATCH] cmake: fix building for mac (bug #5407.) --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f99d71da..b9b9eb620 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1701,8 +1701,7 @@ elseif(APPLE) set(SDL_FRAMEWORK_GAMECONTROLLER 1) 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) + file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m) # FIXME: add checks for SDL_JOYSTICK_MFI??? set(SDL_JOYSTICK_IOKIT 1) set(SDL_FRAMEWORK_IOKIT 1)