mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
committed by
Brad King
parent
ed9abd9977
commit
b284a21fee
@@ -124,7 +124,8 @@ const char* cmLocalVisualStudioGenerator::GetReportErrorLabel() const
|
||||
}
|
||||
|
||||
std::string cmLocalVisualStudioGenerator::ConstructScript(
|
||||
cmCustomCommandGenerator const& ccg, const std::string& newline_text)
|
||||
cmCustomCommandGenerator const& ccg, IsManaged isManaged,
|
||||
const std::string& newline_text)
|
||||
{
|
||||
bool useLocal = this->CustomCommandUseLocal();
|
||||
std::string workingDirectory = ccg.GetWorkingDirectory();
|
||||
@@ -236,6 +237,14 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user