mirror of https://github.com/encounter/SDL.git
Fix CMake setting an incorrect video backend on iOS
This commit is contained in:
parent
c2e2565144
commit
571f4ce8a6
|
@ -1318,7 +1318,7 @@ elseif(APPLE)
|
||||||
# iOS hack needed - http://code.google.com/p/ios-cmake/ ?
|
# iOS hack needed - http://code.google.com/p/ios-cmake/ ?
|
||||||
if(SDL_VIDEO)
|
if(SDL_VIDEO)
|
||||||
if (IOS)
|
if (IOS)
|
||||||
set(SDL_VIDEO_DRIVER_HAIKU 1)
|
set(SDL_VIDEO_DRIVER_UIKIT 1)
|
||||||
file(GLOB UIKITVIDEO_SOURCES ${SDL2_SOURCE_DIR}/src/video/uikit/*.m)
|
file(GLOB UIKITVIDEO_SOURCES ${SDL2_SOURCE_DIR}/src/video/uikit/*.m)
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${UIKITVIDEO_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${UIKITVIDEO_SOURCES})
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in New Issue