Sfoglia il codice sorgente

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

Brad King 23 anni fa
parent
commit
d4d04b46cd
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      Source/cmMakefile.cxx

+ 3 - 1
Source/cmMakefile.cxx

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