mirror of https://github.com/encounter/SDL.git
cmake: fix building for mac (bug #5407.)
This commit is contained in:
parent
2756b0f337
commit
22275b35e4
|
@ -1701,8 +1701,7 @@ elseif(APPLE)
|
||||||
set(SDL_FRAMEWORK_GAMECONTROLLER 1)
|
set(SDL_FRAMEWORK_GAMECONTROLLER 1)
|
||||||
set(HAVE_SDL_SENSORS 1)
|
set(HAVE_SDL_SENSORS 1)
|
||||||
else()
|
else()
|
||||||
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c)
|
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/darwin/*.c ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
|
||||||
file(GLOB JOYSTICK_SOURCES ${SDL2_SOURCE_DIR}/src/joystick/iphoneos/*.m)
|
|
||||||
# FIXME: add checks for SDL_JOYSTICK_MFI???
|
# FIXME: add checks for SDL_JOYSTICK_MFI???
|
||||||
set(SDL_JOYSTICK_IOKIT 1)
|
set(SDL_JOYSTICK_IOKIT 1)
|
||||||
set(SDL_FRAMEWORK_IOKIT 1)
|
set(SDL_FRAMEWORK_IOKIT 1)
|
||||||
|
|
Loading…
Reference in New Issue