diff options
author | Brad King <brad.king@kitware.com> | 2010-08-24 18:42:31 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2010-08-24 18:42:31 (GMT) |
commit | 70f3b06b7c93fee251add63df5710dd71b328088 (patch) | |
tree | 5481aa302a1f293c18119e3042bbf03e16bea3b9 | |
parent | 612c0b68a02b7106fe80c456f4bae4ece3659ba9 (diff) | |
parent | e2341226938857c4b32aa976587fa18cca230a1c (diff) | |
download | CMake-70f3b06b7c93fee251add63df5710dd71b328088.zip CMake-70f3b06b7c93fee251add63df5710dd71b328088.tar.gz CMake-70f3b06b7c93fee251add63df5710dd71b328088.tar.bz2 |
Merge topic 'vs2010-dbginfo-default'
e234122 VS2010: Disable PDBs when there is no debug info
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 59e20d5..ca522bb 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1033,6 +1033,15 @@ void cmVisualStudio10TargetGenerator::WriteClOptions( clOptions.OutputAdditionalOptions(*this->BuildFileStream, " ", ""); this->OutputIncludes(includes); clOptions.OutputFlagMap(*this->BuildFileStream, " "); + + // If not in debug mode, write the DebugInformationFormat field + // without value so PDBs don't get generated uselessly. + if(!clOptions.IsDebug()) + { + this->WriteString("<DebugInformationFormat>" + "</DebugInformationFormat>\n", 3); + } + clOptions.OutputPreprocessorDefinitions(*this->BuildFileStream, " ", "\n"); this->WriteString("<AssemblerListingLocation>", 3); |