From 200c98fc327ba82e52d9bf6502c5ba478506c6aa Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 8 Mar 2005 11:37:41 -0500 Subject: [PATCH] BUG: Only add leading ./ to custom command executable if the command is really specified as one in the current directory. --- Source/cmLocalUnixMakefileGenerator2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalUnixMakefileGenerator2.cxx b/Source/cmLocalUnixMakefileGenerator2.cxx index 55cde2265..0289a8e20 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;