Browse Source

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.
Brad King 9 years ago
parent
commit
c22da7cff7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmVisualStudio10TargetGenerator.cxx

+ 1 - 1
Source/cmVisualStudio10TargetGenerator.cxx

@@ -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)