all Makefiles now have both full path to exe and short version

This commit is contained in:
Ken Martin 2003-08-01 14:10:22 -04:00
parent 8b8766d246
commit 7d33e05a15
1 changed files with 10 additions and 11 deletions

View File

@ -1216,18 +1216,17 @@ void cmLocalUnixMakefileGenerator::OutputExecutableRule(std::ostream& fout,
// If there is no executable output path, add a rule with the // If there is no executable output path, add a rule with the
// relative path to the executable. This is necessary for // relative path to the executable. This is necessary for
// try-compile to work in this case. // try-compile to work in this case.
if(m_ExecutableOutputPath.length() == 0) depend = target;
{
target = name; target = name;
target += cmSystemTools::GetExecutableExtension(); target += cmSystemTools::GetExecutableExtension();
target = cmSystemTools::ConvertToOutputPath(target.c_str()); target = cmSystemTools::ConvertToOutputPath(target.c_str());
commands.resize(0);
this->OutputMakeRule(fout, this->OutputMakeRule(fout,
comment.c_str(), comment.c_str(),
target.c_str(), target.c_str(),
depend.c_str(), depend.c_str(),
commands); commands);
} }
}