Merge branch 'vs8-direct-depends' into vs-target-dependencies
This commit is contained in:
commit
82596fcffc
|
@ -699,9 +699,8 @@ bool cmGlobalGenerator::IsDependedOn(const char* project,
|
||||||
l != targets.end(); l++)
|
l != targets.end(); l++)
|
||||||
{
|
{
|
||||||
cmTarget& target = l->second;
|
cmTarget& target = l->second;
|
||||||
std::set<cmStdString>::const_iterator pos =
|
TargetDependSet const& tgtdeps = this->GetTargetDirectDepends(target);
|
||||||
target.GetUtilities().find(targetIn->GetName());
|
if(tgtdeps.count(targetIn))
|
||||||
if(pos != target.GetUtilities().end())
|
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,6 +288,20 @@ cmGlobalVisualStudio8Generator
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
void cmGlobalVisualStudio8Generator::WriteProjectDepends(
|
||||||
|
std::ostream& fout, const char*, const char*, cmTarget& t)
|
||||||
|
{
|
||||||
|
TargetDependSet const& unordered = this->GetTargetDirectDepends(t);
|
||||||
|
OrderedTargetDependSet depends(unordered);
|
||||||
|
for(OrderedTargetDependSet::const_iterator i = depends.begin();
|
||||||
|
i != depends.end(); ++i)
|
||||||
|
{
|
||||||
|
std::string guid = this->GetGUID((*i)->GetName());
|
||||||
|
fout << "\t\t{" << guid << "} = {" << guid << "}\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
|
bool cmGlobalVisualStudio8Generator::NeedLinkLibraryDependencies(
|
||||||
cmTarget& target)
|
cmTarget& target)
|
||||||
|
|
|
@ -78,6 +78,8 @@ protected:
|
||||||
virtual void WriteProjectConfigurations(std::ostream& fout,
|
virtual void WriteProjectConfigurations(std::ostream& fout,
|
||||||
const char* name,
|
const char* name,
|
||||||
bool partOfDefaultBuild);
|
bool partOfDefaultBuild);
|
||||||
|
virtual void WriteProjectDepends(std::ostream& fout, const char* name,
|
||||||
|
const char* path, cmTarget &t);
|
||||||
|
|
||||||
const char* ArchitectureId;
|
const char* ArchitectureId;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue