summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator2.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-03-08 16:37:41 (GMT)
committerBrad King <brad.king@kitware.com>2005-03-08 16:37:41 (GMT)
commit200c98fc327ba82e52d9bf6502c5ba478506c6aa (patch)
tree55af28140f680f58226d1320ffeb25a76b8e1b83 /Source/cmLocalUnixMakefileGenerator2.cxx
parentd4a20006577ac58b6fc1268c5122721876dce64c (diff)
downloadCMake-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.cxx3
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;