mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-04 04:03:22 +03:00
VS: Don't turn on /DEBUG:FASTLINK for managed C++ targets
FastLink is only supported for native C++ targets. Turning it off avoids a warning when building managed C++.
This commit is contained in:
1 parent
52ae29e63b
commit
27b28c001f
1 file changed
+9
@@ -3414,6 +3414,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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user