Commit 8acf5b78 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'csharp_support_options_isdebug'

e438693e VS: Teach option map IsDebug() method about C# projects
parents e9286c9e e438693e
......@@ -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
......
......@@ -28,7 +28,8 @@ public:
ResourceCompiler,
MasmCompiler,
Linker,
FortranCompiler
FortranCompiler,
CSharpCompiler
};
cmVisualStudioGeneratorOptions(cmLocalVisualStudioGenerator* lg, Tool tool,
cmVS7FlagTable const* table,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment