diff options
author | Brad King <brad.king@kitware.com> | 2005-03-08 16:37:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-08 16:37:41 (GMT) |
commit | 200c98fc327ba82e52d9bf6502c5ba478506c6aa (patch) | |
tree | 55af28140f680f58226d1320ffeb25a76b8e1b83 /Source/cmLocalUnixMakefileGenerator2.cxx | |
parent | d4a20006577ac58b6fc1268c5122721876dce64c (diff) | |
download | CMake-200c98fc327ba82e52d9bf6502c5ba478506c6aa.zip CMake-200c98fc327ba82e52d9bf6502c5ba478506c6aa.tar.gz CMake-200c98fc327ba82e52d9bf6502c5ba478506c6aa.tar.bz2 |
BUG: Only add leading ./ to custom command executable if the command is really specified as one in the current directory.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator2.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 55cde22..0289a8e 100644 --- a/Source/cmLocalUnixMakefileGenerator2.cxx +++ b/Source/cmLocalUnixMakefileGenerator2.cxx @@ -2662,7 +2662,8 @@ cmLocalUnixMakefileGenerator2 std::string cmd = commandLine[0]; cmSystemTools::ReplaceString(cmd, "/./", "/"); cmd = this->ConvertToRelativePath(cmd.c_str()); - if(cmd.find("/") == cmd.npos) + if(cmd.find("/") == cmd.npos && + commandLine[0].find("/") != cmd.npos) { // Add a leading "./" for executables in the current directory. cmd = "./" + cmd; |