Sfoglia il codice sorgente

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

Brad King 19 anni fa
parent
commit
6d72bb5ae1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 += "\\";
         }