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

This commit is contained in:
Bill Hoffman 2007-01-18 16:10:21 -05:00
parent c37f2c20d9
commit 1589890a09
1 changed files with 8 additions and 1 deletions

View File

@ -152,7 +152,14 @@ cmLocalVisualStudioGenerator
// Start with the command name.
const cmCustomCommandLine& commandLine = *cl;
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)