mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-20 06:00:30 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user