mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 05:55:31 +00:00
fix bug #5415 -- fatal error: 'Cocoa/Cocoa.h' file not found in iOS build
This commit is contained in:
parent
a6c6e5f582
commit
471d3c363e
|
@ -1670,7 +1670,11 @@ elseif(APPLE)
|
||||||
message_error("SDL_FILE must be enabled to build on MacOS X")
|
message_error("SDL_FILE must be enabled to build on MacOS X")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(IOS OR TVOS)
|
||||||
|
file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/ios/*.m)
|
||||||
|
else()
|
||||||
file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/macosx/*.m)
|
file(GLOB MISC_SOURCES ${SDL2_SOURCE_DIR}/src/misc/macosx/*.m)
|
||||||
|
endif()
|
||||||
set(SOURCE_FILES ${SOURCE_FILES} ${MISC_SOURCES})
|
set(SOURCE_FILES ${SOURCE_FILES} ${MISC_SOURCES})
|
||||||
set(HAVE_SDL_MISC TRUE)
|
set(HAVE_SDL_MISC TRUE)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue