diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2022-08-22 14:10:56 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2022-09-03 21:10:01 (GMT) |
commit | 838a5fae23cba0c9acf922164ff89fb6883d0f96 (patch) | |
tree | 27cf344771ff7266aa70cbf4ab3ddcba1d653a19 /Source/cmForEachCommand.cxx | |
parent | 8f0e1f2111c046aaa240a54c211404747c911698 (diff) | |
download | CMake-838a5fae23cba0c9acf922164ff89fb6883d0f96.zip CMake-838a5fae23cba0c9acf922164ff89fb6883d0f96.tar.gz CMake-838a5fae23cba0c9acf922164ff89fb6883d0f96.tar.bz2 |
return(): Propagate variables to result scope
Fixes: #23871
Diffstat (limited to 'Source/cmForEachCommand.cxx')
-rw-r--r-- | Source/cmForEachCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx index b9400c9..3465c23 100644 --- a/Source/cmForEachCommand.cxx +++ b/Source/cmForEachCommand.cxx @@ -260,7 +260,7 @@ auto cmForEachFunctionBlocker::invoke( cmExecutionStatus status(mf); mf.ExecuteCommand(func, status); if (status.GetReturnInvoked()) { - inStatus.SetReturnInvoked(); + inStatus.SetReturnInvoked(status.GetReturnVariables()); result.Break = true; break; } |