cmake_language: Fix EXIT inside control flow blocks

These were missed in commit 1bb1769235 (cmake_language: Add EXIT
subcommand, 2024-01-05, v3.29.0-rc1~112^2).

Fixes: #25674
This commit is contained in:
Brad King
2024-02-13 16:45:43 -05:00
parent a3033d1a06
commit 86698eea85
21 changed files with 95 additions and 0 deletions
+5
View File
@@ -272,6 +272,11 @@ auto cmForEachFunctionBlocker::invoke(
if (status.GetContinueInvoked()) {
break;
}
if (status.HasExitCode()) {
inStatus.SetExitCode(status.GetExitCode());
result.Break = true;
break;
}
if (cmSystemTools::GetFatalErrorOccurred()) {
result.Restore = false;
result.Break = true;