diff options
author | Steven Boswell <ulatekh@yahoo.com> | 2021-12-15 18:11:48 (GMT) |
---|---|---|
committer | Steven Boswell <ulatekh@yahoo.com> | 2021-12-15 18:11:48 (GMT) |
commit | dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7 (patch) | |
tree | 82c26ec566af73a7125e56edf90a74010f52ae7b /Source/cmLocalVisualStudio7Generator.cxx | |
parent | cd6b08440752f335f01c3419417dc817d20423ec (diff) | |
download | CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.zip CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.tar.gz CMake-dff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7.tar.bz2 |
VS: add missing label in C# project-build events
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index c40e33e..ba8e6e3 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -570,7 +570,17 @@ public: this->First = true; this->Stream << "\t\t\t<Tool\n\t\t\t\tName=\"" << tool << "\""; } - void Finish() { this->Stream << (this->First ? "" : "\"") << "/>\n"; } + void Finish() + { + // If any commands were generated, finish constructing them. + if (!this->First) { + std::string finishScript = + this->LG->FinishConstructScript(IsManaged::No); + this->Stream << this->LG->EscapeForXML(finishScript) << "\""; + } + + this->Stream << "/>\n"; + } void Write(std::vector<cmCustomCommand> const& ccs) { for (cmCustomCommand const& command : ccs) { @@ -1808,6 +1818,7 @@ void cmLocalVisualStudio7Generator::WriteCustomRule( if (this->FortranProject) { cmSystemTools::ReplaceString(script, "$(Configuration)", config); } + script += this->FinishConstructScript(IsManaged::No); /* clang-format off */ fout << "\t\t\t\t\t<Tool\n" << "\t\t\t\t\tName=\"" << customTool << "\"\n" |