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
A different thing is if using the conan_toolchain.props, because at the moment the conditions generated are:
def_name_condition(self, settings):
props= [("Configuration", self.configuration),
# TODO: refactor, put in common with MSBuildDeps. Beware this is != msbuild_arch# because of Win32
("Platform", {'x86': 'Win32',
'x86_64': 'x64',
'armv7': 'ARM',
'armv8': 'ARM64'}.get(settings.get_safe("arch")))]
name="".join("_%s"%vfor_, vinpropsifvisnotNone)
condition=" And ".join("'$(%s)' == '%s'"% (k, v) fork, vinpropsifvisnotNone)
returnname.lower(), condition
It looks this might need some further parametrization. Can you please confirm that your Mixed Platforms is kind of "architecture" type selector? How it does connect to the underlying Conan settings.arch? Because that arch will have one of those values, isn't it? It could be a bit confusing to have a package with a package_id for arch=armv8, but the binaries that were built do not match that because they were "Mixed Platforms".
So the Platform seems limited to the architecture.
What is your question?
Hello,
I'm working on migrating an MSBuild project to Conan 2.x that passed a "Platforms" property in Conan 1.x by doing something like:
That affected the build configuration and the build would output:
Building solution configuration "Release|Mixed Platforms".
For Conan 2.x it looked like the equivalent would be to do the following:
However, the build configuration is not as desired ("Release|Mixed Platforms") based on the output:
Building solution configuration "Release|x86".
Is there something I'm missing in my approach to get the "Platform" property down to MSBuild properly?
Thank you!
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: