summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-01-30 13:45:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-01-30 13:46:24 (GMT)
commite6267df94efb3890194dde4f6fb7c27e2728bad0 (patch)
tree3c42101108946a191fb4af5f9144318d2d3c8824 /Source
parentbb352337850ac2b47819aa1e25398133e916f10f (diff)
parentb07b1aa416ecd90110937ee3cd84b9f9c8be5e8d (diff)
downloadCMake-e6267df94efb3890194dde4f6fb7c27e2728bad0.zip
CMake-e6267df94efb3890194dde4f6fb7c27e2728bad0.tar.gz
CMake-e6267df94efb3890194dde4f6fb7c27e2728bad0.tar.bz2
Merge topic 'vcxproj-DebugInformationFormat-newline'
b07b1aa4 VS: Use newline for empty DebugInformationFormat tags Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1704
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 4555358..e15e833 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2563,11 +2563,12 @@ void cmVisualStudio10TargetGenerator::WriteClOptions(
}
// If not in debug mode, write the DebugInformationFormat field
- // without value so PDBs don't get generated uselessly.
+ // without value so PDBs don't get generated uselessly. Each tag
+ // goes on its own line because Visual Studio corrects it this
+ // way when saving the project after CMake generates it.
if (!clOptions.IsDebug()) {
- this->WriteString("<DebugInformationFormat>"
- "</DebugInformationFormat>\n",
- 3);
+ this->WriteString("<DebugInformationFormat>\n", 3);
+ this->WriteString("</DebugInformationFormat>\n", 3);
}
// Specify the compiler program database file if configured.