commit | e0bf60b17e33948a5d734af0696284879591869c | [log] [tgz] |
---|---|---|
author | Sam Lantinga <slouken@libsdl.org> | Mon Jan 25 20:43:21 2021 -0800 |
committer | Sam Lantinga <slouken@libsdl.org> | Mon Jan 25 20:43:21 2021 -0800 |
tree | f0c9bc7698c6f1af81d3ddd39cf6eaaa14d9ad82 | |
parent | 3b2b0cd3cedb077383624c16f993591a9fbecd03 [diff] |
Fixed bug 5481 - iOS-specific main sources not used for CMake build. Aaron Barany The CMake build for SDL doesn't set SDLMAIN_SOURCES on iOS to the sources in src/main/ios. As a result, SDL fails to initialize since it falls back to the dummy main. Adding the line file(GLOB SDLMAIN_SOURCES ${SDL2_SOURCE_DIR}/src/main/uikit/*.c) fixes the issue.