summaryrefslogtreecommitdiffstats
path: root/Source/cmListCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-08-17 09:47:20 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-08-17 10:07:41 (GMT)
commit45ed175f0898fb407dbc327b660449e1d773c197 (patch)
tree200c770e0bfa3f0c742e98574b358a67530aa44a /Source/cmListCommand.cxx
parenta69c783749f769f41875ff818c68ead277fd24f9 (diff)
downloadCMake-45ed175f0898fb407dbc327b660449e1d773c197.zip
CMake-45ed175f0898fb407dbc327b660449e1d773c197.tar.gz
CMake-45ed175f0898fb407dbc327b660449e1d773c197.tar.bz2
list(INSERT): restore old behavior
Fixes: #25191
Diffstat (limited to 'Source/cmListCommand.cxx')
-rw-r--r--Source/cmListCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index acffa2e..ebf5841 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -375,7 +375,8 @@ bool HandleInsertCommand(std::vector<std::string> const& args,
}
try {
- list->insert_items(index, args.begin() + 3, args.end());
+ list->insert_items(index, args.begin() + 3, args.end(),
+ cmList::ExpandElements::No, cmList::EmptyElements::Yes);
status.GetMakefile().AddDefinition(listName, list->to_string());
return true;
} catch (std::out_of_range& e) {