summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorSteven Boswell <ulatekh@yahoo.com>2021-12-15 18:11:48 (GMT)
committerSteven Boswell <ulatekh@yahoo.com>2021-12-15 18:11:48 (GMT)
commitdff98aa9ca68cf876a4ac5e73ccd1aa9b5a30da7 (patch)
tree82c26ec566af73a7125e56edf90a74010f52ae7b /Source/cmLocalVisualStudioGenerator.cxx
parentcd6b08440752f335f01c3419417dc817d20423ec (diff)
downloadCMake-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.cxx17
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;
+}