mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 13:50:10 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user