BUG: Need to escape spaces in custom command line arguments.
This commit is contained in:
parent
45a44a70b3
commit
6d72bb5ae1
|
@ -2257,7 +2257,7 @@ std::string cmLocalGenerator::EscapeForShell(const char* str)
|
|||
{
|
||||
for(const char* c = str; *c; ++c)
|
||||
{
|
||||
if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';')
|
||||
if(*c == '\\' || *c == '\'' || *c == '"' || *c == ';' || *c == ' ')
|
||||
{
|
||||
result += "\\";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue