mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-26 16:39:44 -06:00
BUG: Fix for custom commands with spaces in paths. The arguments were not having spaces escaped.
This commit is contained in:
@@ -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 += " ";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user