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/cmLocalVisualStudioGenerator.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/cmLocalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index ee7e77f..f696dea 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -243,3 +243,20 @@ std::string cmLocalVisualStudioGenerator::ConstructScript( return script; } + +std::string cmLocalVisualStudioGenerator::FinishConstructScript( + IsManaged isManaged, const std::string& newline) +{ + bool useLocal = this->CustomCommandUseLocal(); + + // Store the script in a string. + std::string script; + + if (useLocal && isManaged == IsManaged::Yes) { + // These aren't generated by default for C# projects. + script += newline; + script += this->GetReportErrorLabel(); + } + + return script; +} |