VS: Drop unused condition in link debug flag generation

The `linkOptions.IsDebug()` call never returns true because it
checks for `DebugInformationFormat` which is a compiler (cl) flag.
This commit is contained in:
Brad King 2016-01-08 14:36:45 -05:00
parent 4ca9df8bd1
commit c22da7cff7
1 changed files with 1 additions and 1 deletions

View File

@ -2597,7 +2597,7 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
linkOptions.AddFlag("StackReserveSize", stackVal);
}
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
if(flags.find("/debug") != flags.npos)
{
if (this->LocalGenerator->GetVersion() >=
cmGlobalVisualStudioGenerator::VS14)