summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLocalVisualStudioGenerator.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx
index 25efbbb..d6f2921 100644
--- a/Source/cmLocalVisualStudioGenerator.cxx
+++ b/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)