BUG: Need to use GetRealDependency for custom command file-level dependencies.
This commit is contained in:
parent
c3474ad029
commit
ea44d68cb6
@ -1029,24 +1029,11 @@ void cmGlobalXCodeGenerator
|
|||||||
cc.GetDepends().begin();
|
cc.GetDepends().begin();
|
||||||
d != cc.GetDepends().end(); ++d)
|
d != cc.GetDepends().end(); ++d)
|
||||||
{
|
{
|
||||||
if(!this->FindTarget(this->CurrentProject.c_str(), d->c_str(), false))
|
std::string dep =
|
||||||
{
|
this->CurrentLocalGenerator->GetRealDependency(d->c_str(),
|
||||||
// if the depend is not a target but
|
configName);
|
||||||
// is a full path then use it, if not then
|
makefileStream << "\\\n" << this
|
||||||
// just skip it
|
->ConvertToRelativeForMake(dep.c_str());
|
||||||
if(cmSystemTools::FileIsFullPath(d->c_str()))
|
|
||||||
{
|
|
||||||
makefileStream << "\\\n" << this
|
|
||||||
->ConvertToRelativeForMake(d->c_str());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// if the depend is a target then make
|
|
||||||
// the target with the source that is a custom command
|
|
||||||
// depend on the that target via a AddUtility call
|
|
||||||
target.AddUtility(d->c_str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
makefileStream << "\n";
|
makefileStream << "\n";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user