Commit 200c98fc authored by Brad King's avatar Brad King
Browse files

BUG: Only add leading ./ to custom command executable if the command is really...

BUG: Only add leading ./ to custom command executable if the command is really specified as one in the current directory.
parent d4a20006
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment