mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05: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()) {
|
if (cmSystemTools::GetFatalErrorOccurred()) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (status.HasExitCode()) {
|
||||||
|
// cmake_language EXIT was requested, early break.
|
||||||
|
this->GetCMakeInstance()->SetScriptModeExitCode(status.GetExitCode());
|
||||||
|
break;
|
||||||
|
}
|
||||||
if (status.GetReturnInvoked()) {
|
if (status.GetReturnInvoked()) {
|
||||||
this->RaiseScope(status.GetReturnVariables());
|
this->RaiseScope(status.GetReturnVariables());
|
||||||
// Exit early due to return command.
|
// Exit early due to return command.
|
||||||
|
|||||||
Reference in New Issue
Block a user