Merge topic 'vs-managed-fastlink'

27b28c001f VS: Don't turn on /DEBUG:FASTLINK for managed C++ targets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2011
This commit is contained in:
Brad King
2018-04-27 12:23:56 +00:00
committed by Kitware Robot
@@ -3475,6 +3475,15 @@ bool cmVisualStudio10TargetGenerator::ComputeLinkOptions(
}
}
// Managed code cannot be linked with /DEBUG:FASTLINK
if (this->Managed) {
if (const char* debug = linkOptions.GetFlag("GenerateDebugInformation")) {
if (strcmp(debug, "DebugFastLink") == 0) {
linkOptions.AddFlag("GenerateDebugInformation", "Debug");
}
}
}
this->LinkOptions[config] = std::move(pOptions);
return true;
}