From 1589890a090b54bc3584e822ea7e94345f8d7388 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 18 Jan 2007 16:10:21 -0500 Subject: [PATCH] ENH: do not use relative paths for custom command commands if they working directory is used --- Source/cmLocalVisualStudioGenerator.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index 25efbbb29..d6f2921f2 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)