summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudioGeneratorOptions.cxx
diff options
context:
space:
mode:
authorMichael Stürmer <michael.stuermer@schaeffler.com>2016-12-07 11:48:49 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-07 16:49:43 (GMT)
commite438693e953b77ca12339f664518e28283c7ec64 (patch)
treef17b161b7b245a4326dbfd7c7defbf179f2a4970 /Source/cmVisualStudioGeneratorOptions.cxx
parent0f37cd228e9668d981ff75f3e1c63d4f716b7e57 (diff)
downloadCMake-e438693e953b77ca12339f664518e28283c7ec64.zip
CMake-e438693e953b77ca12339f664518e28283c7ec64.tar.gz
CMake-e438693e953b77ca12339f664518e28283c7ec64.tar.bz2
VS: Teach option map IsDebug() method about C# projects
Diffstat (limited to 'Source/cmVisualStudioGeneratorOptions.cxx')
-rw-r--r--Source/cmVisualStudioGeneratorOptions.cxx12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmVisualStudioGeneratorOptions.cxx b/Source/cmVisualStudioGeneratorOptions.cxx
index 62200ce..c0913e6 100644
--- a/Source/cmVisualStudioGeneratorOptions.cxx
+++ b/Source/cmVisualStudioGeneratorOptions.cxx
@@ -130,7 +130,17 @@ void cmVisualStudioGeneratorOptions::SetVerboseMakefile(bool verbose)
bool cmVisualStudioGeneratorOptions::IsDebug() const
{
- return this->FlagMap.find("DebugInformationFormat") != this->FlagMap.end();
+ if (this->CurrentTool != CSharpCompiler) {
+ return this->FlagMap.find("DebugInformationFormat") != this->FlagMap.end();
+ }
+ std::map<std::string, FlagValue>::const_iterator i =
+ this->FlagMap.find("DebugType");
+ if (i != this->FlagMap.end()) {
+ if (i->second.size() == 1) {
+ return i->second[0] != "none";
+ }
+ }
+ return false;
}
bool cmVisualStudioGeneratorOptions::IsWinRt() const