Commit f7fdcb8f authored by Jean-Philippe Lebel's avatar Jean-Philippe Lebel
Browse files

VS_DOTNET_PLATFORM to overwrite the "platform" for a C# target

For example, you can now create a AnyCPU target by using
set_property(TARGET Example PROPERTY VS_DOTNET_PLATFORM "AnyCPU")
parent d8701485
Pipeline #91157 passed with stage
in 0 seconds
......@@ -93,7 +93,16 @@ cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator(
(cmLocalVisualStudio7Generator*)this->GeneratorTarget->GetLocalGenerator();
this->Name = this->GeneratorTarget->GetName();
this->GUID = this->GlobalGenerator->GetGUID(this->Name);
// overwrite the PLATFORM if required - Only for Managed code
const char* vsdotnetplatform =
this->GeneratorTarget->GetProperty("VS_DOTNET_PLATFORM");
if (this->Managed && vsdotnetplatform) {
this->Platform = vsdotnetplatform;
} else {
this->Platform = gg->GetPlatformName();
}
this->NsightTegra = gg->IsNsightTegra();
for (int i = 0; i < 4; ++i) {
this->NsightTegraVersion[i] = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment