Просмотр исходного кода

BUG: Need to escape spaces in custom command line arguments.

Brad King 19 лет назад
Родитель
Сommit
6d72bb5ae1
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Source/cmLocalGenerator.cxx

+ 1 - 1
Source/cmLocalGenerator.cxx

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