瀏覽代碼

ENH: do not use relative paths for custom command commands if they working directory is used

Bill Hoffman 19 年之前
父節點
當前提交
1589890a09
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      Source/cmLocalVisualStudioGenerator.cxx

+ 8 - 1
Source/cmLocalVisualStudioGenerator.cxx

@@ -152,7 +152,14 @@ cmLocalVisualStudioGenerator
 
     // Start with the command name.
     const cmCustomCommandLine& commandLine = *cl;
-    script += this->Convert(commandLine[0].c_str(),START_OUTPUT,SHELL);
+    if(!workingDirectory)
+      {
+      script += this->Convert(commandLine[0].c_str(),START_OUTPUT,SHELL);
+      }
+    else
+      {
+      script += this->Convert(commandLine[0].c_str(),NONE,SHELL);
+      }
 
     // Add the arguments.
     for(unsigned int j=1;j < commandLine.size(); ++j)