Fixing cmake for iOS

I made some changes to the CMakeLists to compile SDL2 with CMake using this toolchain https://github.com/leetal/ios-cmake

Basically adding the correct frameworks and adding SDL_VIDEO_DRIVER_UIKIT to SDL_config.h and enabling opengles.
Some issues were that the cmake file overrides the CMAKE_C_FLAGS flags set by the toolchain file so they needed to set in the environment manually, eg export CFLAGS="-fobjc-arc", I’m not sure if that is the toolchain or SDL2 not setting the flags properly?
The dylib does’t build, i’m wondering if that is because SDL2 doesn’t support dylibs for IOS, as SDL_DYNAMIC_API is set to 0?
I’m not sure how to go about sharing the changes?