Merge branch 'vs14-debug-enum' into release
This commit is contained in:
commit
e1f9d3c0a0
|
@ -2578,13 +2578,29 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
|
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
|
||||||
|
{
|
||||||
|
if (this->LocalGenerator->GetVersion() >=
|
||||||
|
cmGlobalVisualStudioGenerator::VS14)
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "Debug");
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("GenerateDebugInformation", "true");
|
linkOptions.AddFlag("GenerateDebugInformation", "true");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (this->LocalGenerator->GetVersion() >=
|
||||||
|
cmGlobalVisualStudioGenerator::VS14)
|
||||||
|
{
|
||||||
|
linkOptions.AddFlag("GenerateDebugInformation", "No");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("GenerateDebugInformation", "false");
|
linkOptions.AddFlag("GenerateDebugInformation", "false");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
std::string pdb = this->Target->GetPDBDirectory(config.c_str());
|
std::string pdb = this->Target->GetPDBDirectory(config.c_str());
|
||||||
pdb += "/";
|
pdb += "/";
|
||||||
pdb += targetNamePDB;
|
pdb += targetNamePDB;
|
||||||
|
|
Loading…
Reference in New Issue