Bugfix: correctly set CMAKE_OSX_SYSROOT and CMAKE_OSX_ARCHITECTURES #7512
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
closes: #7493
Changelog: Bugfix: correctly set
CMAKE_OSX_SYSROOT
andCMAKE_OSX_ARCHITECTURES
.Docs: omit
what exactly has been fixed?
custom setting (e.g.
arch=ios_far
) will not result in-DCMAKE_OSX_ARCHITECTURES="None"
return correct SDK root (e.g.
iPhoneOS.platform
) for custom settings (e.g.os=iOS
andarch=ios_fat
)it's redundant to invoke
xcrun
if environment variableSDKROOT
was set - CMake will use it anywaydon't try to set
CMAKE_OSX_ARCHITECTURES
/CMAKE_OSX_SYSROOT
if toolchain file is used (see comment as well)Refer to the issue that supports this Pull Request.
If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
I've read the Contributing guide.
I've followed the PEP8 style guides for Python code.
I've opened another PR in the Conan docs repo to the
develop
branch, documenting this one.Note: By default this PR will skip the slower tests and will use a limited set of python versions. Check here how to increase the testing level by writing some tags in the current PR body text.