summaryrefslogtreecommitdiff
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2022-08-22 16:10:56 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2022-09-03 23:10:01 +0200
commit838a5fae23cba0c9acf922164ff89fb6883d0f96 (patch)
tree27cf344771ff7266aa70cbf4ab3ddcba1d653a19 /Source/cmMakefile.cxx
parent8f0e1f2111c046aaa240a54c211404747c911698 (diff)
downloadcmake-838a5fae23cba0c9acf922164ff89fb6883d0f96.tar.gz
return(): Propagate variables to result scope
Fixes: #23871
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 51a4b3b7ee..760ed5f35c 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -789,6 +789,7 @@ void cmMakefile::RunListFile(cmListFile const& listFile,
break;
}
if (status.GetReturnInvoked()) {
+ this->RaiseScope(status.GetReturnVariables());
// Exit early due to return command.
break;
}