diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 607819d..75878ce 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -416,7 +416,9 @@ void cmMakefile::AddCustomCommand(const char* source, for (i = 0; i < commandArgs.size(); ++i) { - combinedArgs += cmSystemTools::EscapeSpaces(commandArgs[i].c_str()); + expandC = commandArgs[i].c_str(); + this->ExpandVariablesInString(expandC); + combinedArgs += cmSystemTools::EscapeSpaces(expandC.c_str()); combinedArgs += " "; } |