mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
cmMakefile: Store the exit code from cmExecutionStatus to cmake instance
This commit is contained in:
@@ -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