ENH: make sure custom commands depend on full path files only: Bill as Andy

This commit is contained in:
Andy Cedilnik 2005-07-28 13:12:07 -04:00
parent a6abb79776
commit fac61306a2

View File

@ -834,9 +834,15 @@ cmGlobalXCodeGenerator::AddCommandsToBuildPhase(cmXCodeObject* buildphase,
if(!this->FindTarget(m_CurrentProject.c_str(), if(!this->FindTarget(m_CurrentProject.c_str(),
d->c_str())) d->c_str()))
{ {
// if the depend is not a target but
// is a full path then use it, if not then
// just skip it
if(cmSystemTools::FileIsFullPath(d->c_str()))
{
makefileStream << "\\\n" << this makefileStream << "\\\n" << this
->ConvertToRelativeForMake(d->c_str()); ->ConvertToRelativeForMake(d->c_str());
} }
}
else else
{ {
// if the depend is a target then make // if the depend is a target then make