VS: Fix VS 2015 .vcxproj file value for GenerateDebugInformation (#15894)
Starting with VS 2015 the GenerateDebugInformation build property is an enumeration (`No`, `Debug`, `DebugFastLink`) instead of a boolean value (`false`, `true`). For now we simply change to `No` and `Debug` fix current behavior. Support for `/debug:fastlink` can be added later.
This commit is contained in:
parent
fd7180f0c0
commit
f086c665da
@ -2579,11 +2579,27 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
|||||||
|
|
||||||
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
|
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("GenerateDebugInformation", "true");
|
if (this->LocalGenerator->GetVersion() >=
|
||||||
|
cmGlobalVisualStudioGenerator::VS14)
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "Debug");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "true");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("GenerateDebugInformation", "false");
|
if (this->LocalGenerator->GetVersion() >=
|
||||||
|
cmGlobalVisualStudioGenerator::VS14)
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "No");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "false");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
std::string pdb = this->Target->GetPDBDirectory(config.c_str());
|
std::string pdb = this->Target->GetPDBDirectory(config.c_str());
|
||||||
pdb += "/";
|
pdb += "/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user