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
Skip when no arch is present #9045
Skip when no arch is present #9045
Conversation
* Improved test to fail if no target is generated for the build context and activating the build context explicitly * Clean msg
conan/tools/cmake/toolchain.py
Outdated
@@ -344,6 +344,8 @@ def _apple_sdk_name(self): | |||
def context(self): | |||
os_ = self._conanfile.settings.get_safe("os") | |||
host_architecture = self._get_architecture() | |||
if host_architecture is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't at least the CMAKE_SYSTEM_NAME, CMAKE_SYSTEM_VERSION for iOS, tvOS, watchOS be defined? Is it possible to have those target systems without arch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can try...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is possible. It allowed to simplify the code, please check again.
Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
Changelog: Bugfix: The
CMakeToolchain
generator now manages correctly a recipe withoutarch
declared in an Apple system.Docs: omit