New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS cmake build should use a toolchain file #1268
Comments
There is a nice set of toolchains for iOS maintained in polly (companion project for the hunter package manager). Random examples:
Usage: |
Could you motivate the need for such toolchain (that needs to be updated and maintained)? The fact that it's used for android seems irrelevant to me. What is currently broken? |
Sure! Currently the cmake variables setup in SFML would also have to be updated and maintained. Centralizing iOS logic in the tool chain allows us to simplify the rest of the cmake files. This is the standard pattern when setting up a cmake project for cross compiling. As for my personal motivation, my team has a build system that pulls down and builds all of our projects dependencies when initiating a build for a given platform and architecture. SFML is one of those dependencies and our build system will blindly set the toolchain file for a cross compiled system. This means all of our dependencies are built with the same toolchain file. It would be a hassle to work around specific dependencies quirks when there is a standard pattern cmake already has. |
Seems like a reasonable thing to do, indeed. |
Fixed with #1269 |
Problem: Currently SFML on iOS builds itself with CMake but it does not use a toolchain file. Instead, it sets the necessary CMake variables itself instead of relying on the external toolchain file. It's worth noting that SFML does use a toolchain file for android.
Suggested Solution: Ship an iOS toolchain file with SFML and have the user specify CMAKE_TOOLCHAIN_FILE=/path/to/toolchain.cmake instead of IOS=True
The text was updated successfully, but these errors were encountered: