summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-01-11 09:18:33 -0500
committerBrad King <brad.king@kitware.com>2016-01-11 09:18:33 -0500
commite1f9d3c0a01fa62eaf933142cb07308eba57acd9 (patch)
treea1c9519e6952f67168808fdafb0b3580f0fb3df9
parentcc5dcb3876851abb7927367d23085d256a0b3e15 (diff)
parentf086c665da00228cabf465dc1eb7223d40fd6270 (diff)
downloadcmake-e1f9d3c0a01fa62eaf933142cb07308eba57acd9.tar.gz
Merge branch 'vs14-debug-enum' into release
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 1de284721c..6b46773919 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2579,11 +2579,27 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
if(linkOptions.IsDebug() || flags.find("/debug") != flags.npos)
{
- linkOptions.AddFlag("GenerateDebugInformation", "true");
+ if (this->LocalGenerator->GetVersion() >=
+ cmGlobalVisualStudioGenerator::VS14)
+ {
+ linkOptions.AddFlag("GenerateDebugInformation", "Debug");
+ }
+ else
+ {
+ linkOptions.AddFlag("GenerateDebugInformation", "true");
+ }
}
else
{
- linkOptions.AddFlag("GenerateDebugInformation", "false");
+ if (this->LocalGenerator->GetVersion() >=
+ cmGlobalVisualStudioGenerator::VS14)
+ {
+ linkOptions.AddFlag("GenerateDebugInformation", "No");
+ }
+ else
+ {
+ linkOptions.AddFlag("GenerateDebugInformation", "false");
+ }
}
std::string pdb = this->Target->GetPDBDirectory(config.c_str());
pdb += "/";