mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 14:50:15 -05:00
cmMakefile: Don't expand bracket arguments in --trace-expand
Bracket arguments are literal and shouldn't be expanded. Fixes #21671.
This commit is contained in:
@@ -308,7 +308,7 @@ void cmMakefile::PrintCommandTrace(
|
||||
|
||||
args.reserve(lff.Arguments().size());
|
||||
for (cmListFileArgument const& arg : lff.Arguments()) {
|
||||
if (expand) {
|
||||
if (expand && arg.Delim != cmListFileArgument::Bracket) {
|
||||
temp = arg.Value;
|
||||
this->ExpandVariablesInString(temp);
|
||||
args.push_back(temp);
|
||||
|
||||
Reference in New Issue
Block a user