BUG: Fix for custom commands with spaces in paths. The arguments were not having spaces escaped.

This commit is contained in:
Brad King 2003-01-20 19:17:17 -05:00
parent 9cbb4fd308
commit d4d04b46cd
1 changed files with 3 additions and 1 deletions

View File

@ -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 += " ";
}