You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
as the toolchain file is processed when project(SFML) is called, it doesn't overwrite the previous setting of CMAKE_OSX_ARCHITECTURES, configured here
Not 100% sure of the best way to fix this. @Ceylo fixed it by checking if a toolchain file is being used, which will work, but I think there should be a better way.
I also found that moving the call to project() to be above that block of Code also fixes it, and doesn't have any adverse effects on osx builds, however the docs indicate it must be set before the first call to project(), so I'm reluctant to do that
The text was updated successfully, but these errors were encountered:
Anotherpossible way is to force updating the cache entry in the toolcgain file. This means the user will be unable to change the architecture in CMake GUI but that may be ok as it’ll most likely not be needed anytime soon.
That actually sounds like a decent solution - the architecture in the toolchain is determined by the IOS_PLATFORM variable, which the user can modify so it wouldn't really restrict anything
See discussion here
as the toolchain file is processed when
project(SFML)
is called, it doesn't overwrite the previous setting of CMAKE_OSX_ARCHITECTURES, configured hereNot 100% sure of the best way to fix this. @Ceylo fixed it by checking if a toolchain file is being used, which will work, but I think there should be a better way.
I also found that moving the call to
project()
to be above that block of Code also fixes it, and doesn't have any adverse effects on osx builds, however thedocs indicate it must be set before the first call to project(), so I'm reluctant to do that
The text was updated successfully, but these errors were encountered: