mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-12 23:43:59 +03:00
cmMakefile: Store the exit code from cmExecutionStatus to cmake instance
This commit is contained in:
1 parent
9f6c937408
commit
3d9d504646
1 file changed
+5
@@ -898,6 +898,11 @@ void cmMakefile::RunListFile(cmListFile const& listFile,
|
||||
if (cmSystemTools::GetFatalErrorOccurred()) {
|
||||
break;
|
||||
}
|
||||
if (status.HasExitCode()) {
|
||||
// cmake_language EXIT was requested, early break.
|
||||
this->GetCMakeInstance()->SetScriptModeExitCode(status.GetExitCode());
|
||||
break;
|
||||
}
|
||||
if (status.GetReturnInvoked()) {
|
||||
this->RaiseScope(status.GetReturnVariables());
|
||||
// Exit early due to return command.
|
||||
|
||||
Reference in new issue
Block a user