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:33 (GMT)
commit67cbfed81981a25aa56a3d05a267c1acf6ea5781 (patch)
tree19a020f41949e8055f0ae8ec2d94df8226ffa382 /Source/cmLocalVisualStudioGenerator.cxx
parentd565f9f0ee849e541036d26dc1bd69e6ce908d84 (diff)
parent13a7ae2194d44f955712d65fecf0b741049da00e (diff)
downloadCMake-67cbfed81981a25aa56a3d05a267c1acf6ea5781.zip
CMake-67cbfed81981a25aa56a3d05a267c1acf6ea5781.tar.gz
CMake-67cbfed81981a25aa56a3d05a267c1acf6ea5781.tar.bz2
Merge topic 'vs-csproj-scripts' into release-3.22
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 4ed1dd9..03213ef 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/Source/cmLocalVisualStudioGenerator.cxx
@@ -124,8 +124,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();
@@ -238,14 +237,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;