summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-03 13:54:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-03 13:54:34 (GMT)
commit9ecb24b5a7c5c41ff16f4445223b0b0a3d6966be (patch)
tree4dea56aba60e22866867416eec2cb83d110b59be /Source/cmLocalVisualStudioGenerator.cxx
parentcf32ffda05b780a2f13f7e79126b22ed59c63dc8 (diff)
parent13a7ae2194d44f955712d65fecf0b741049da00e (diff)
downloadCMake-9ecb24b5a7c5c41ff16f4445223b0b0a3d6966be.zip
CMake-9ecb24b5a7c5c41ff16f4445223b0b0a3d6966be.tar.gz
CMake-9ecb24b5a7c5c41ff16f4445223b0b0a3d6966be.tar.bz2
Merge topic 'vs-csproj-scripts'
13a7ae2194 VS: Revert "Add missing label in C# project-build events" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6781
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmLocalVisualStudioGenerator.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx
index e57163e..ee7e77f 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/Source/cmLocalVisualStudioGenerator.cxx
@@ -126,8 +126,7 @@ const char* cmLocalVisualStudioGenerator::GetReportErrorLabel() const
}
std::string cmLocalVisualStudioGenerator::ConstructScript(
- cmCustomCommandGenerator const& ccg, IsManaged isManaged,
- const std::string& newline_text)
+ cmCustomCommandGenerator const& ccg, const std::string& newline_text)
{
bool useLocal = this->CustomCommandUseLocal();
std::string workingDirectory = ccg.GetWorkingDirectory();
@@ -240,14 +239,6 @@ std::string cmLocalVisualStudioGenerator::ConstructScript(
script += newline;
script += "if %errorlevel% neq 0 goto ";
script += this->GetReportErrorLabel();
- if (isManaged == managed) {
- // These aren't generated by default for C# projects.
- script += newline;
- script += this->GetReportErrorLabel();
- script += newline;
- script += "exit /b 0";
- script += newline;
- }
}
return script;