Merge topic 'vs14-debug-enum'
f086c665
VS: Fix VS 2015 .vcxproj file value for GenerateDebugInformation (#15894)
This commit is contained in:
commit
cedbb7994d
|
@ -2598,13 +2598,29 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
|||
}
|
||||
|
||||
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
|
||||
{
|
||||
if (this->LocalGenerator->GetVersion() >=
|
||||
cmGlobalVisualStudioGenerator::VS14)
|
||||
{
|
||||
linkOptions.AddFlag("GenerateDebugInformation", "Debug");
|
||||
}
|
||||
else
|
||||
{
|
||||
linkOptions.AddFlag("GenerateDebugInformation", "true");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (this->LocalGenerator->GetVersion() >=
|
||||
cmGlobalVisualStudioGenerator::VS14)
|
||||
{
|
||||
linkOptions.AddFlag("GenerateDebugInformation", "No");
|
||||
}
|
||||
else
|
||||
{
|
||||
linkOptions.AddFlag("GenerateDebugInformation", "false");
|
||||
}
|
||||
}
|
||||
std::string pdb = this->GeneratorTarget->GetPDBDirectory(config.c_str());
|
||||
pdb += "/";
|
||||
pdb += targetNamePDB;
|
||||
|
|
Loading…
Reference in New Issue