summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-08 19:36:45 (GMT)
committerBrad King <brad.king@kitware.com>2016-01-11 14:43:13 (GMT)
commitc22da7cff74a293d6362598c2a381147d658022f (patch)
tree188fd2a65bfeff19afb5c308ba78e47f82fa6cb6 /Source
parent4ca9df8bd1991870a8a4acfeae26933e8ca7dc9a (diff)
downloadCMake-c22da7cff74a293d6362598c2a381147d658022f.zip
CMake-c22da7cff74a293d6362598c2a381147d658022f.tar.gz
CMake-c22da7cff74a293d6362598c2a381147d658022f.tar.bz2
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 669c785..56f724f 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/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)