summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-01-18 21:10:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-01-18 21:10:21 (GMT)
commit1589890a090b54bc3584e822ea7e94345f8d7388 (patch)
tree712035d92175b803c295eb6371fb3363793203d4 /Source/cmLocalVisualStudioGenerator.cxx
parentc37f2c20d99d4132218d22d2b4b8ea81d183de31 (diff)
downloadCMake-1589890a090b54bc3584e822ea7e94345f8d7388.zip
CMake-1589890a090b54bc3584e822ea7e94345f8d7388.tar.gz
CMake-1589890a090b54bc3584e822ea7e94345f8d7388.tar.bz2
ENH: do not use relative paths for custom command commands if they working directory is used
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
-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)