[cmake-commits] hoffman committed cmLocalVisualStudioGenerator.cxx
1.8 1.9
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jan 18 16:10:23 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14854
Modified Files:
cmLocalVisualStudioGenerator.cxx
Log Message:
ENH: do not use relative paths for custom command commands if they working directory is used
Index: cmLocalVisualStudioGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudioGenerator.cxx,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cmLocalVisualStudioGenerator.cxx 25 Oct 2006 16:27:17 -0000 1.8
+++ cmLocalVisualStudioGenerator.cxx 18 Jan 2007 21:10:21 -0000 1.9
@@ -152,7 +152,14 @@
// 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)
More information about the Cmake-commits
mailing list