Constify cmGeneratorTarget access.
This commit is contained in:
parent
9edee62f28
commit
a54eeddaae
|
@ -104,7 +104,7 @@ struct cmStrictTargetComparison {
|
|||
bool operator()(cmTarget const* t1, cmTarget const* t2) const;
|
||||
};
|
||||
|
||||
typedef std::map<cmTarget*,
|
||||
typedef std::map<cmTarget const*,
|
||||
cmGeneratorTarget*,
|
||||
cmStrictTargetComparison> cmGeneratorTargetsType;
|
||||
|
||||
|
|
|
@ -1432,7 +1432,8 @@ void cmGlobalGenerator::ClearGeneratorMembers()
|
|||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
cmGeneratorTarget* cmGlobalGenerator::GetGeneratorTarget(cmTarget* t) const
|
||||
cmGeneratorTarget*
|
||||
cmGlobalGenerator::GetGeneratorTarget(cmTarget const* t) const
|
||||
{
|
||||
cmGeneratorTargetsType::const_iterator ti = this->GeneratorTargets.find(t);
|
||||
if(ti == this->GeneratorTargets.end())
|
||||
|
|
|
@ -269,7 +269,7 @@ public:
|
|||
TargetDependSet const& GetTargetDirectDepends(cmTarget const& target);
|
||||
|
||||
/** Get per-target generator information. */
|
||||
cmGeneratorTarget* GetGeneratorTarget(cmTarget*) const;
|
||||
cmGeneratorTarget* GetGeneratorTarget(cmTarget const*) const;
|
||||
|
||||
const std::map<cmStdString, std::vector<cmLocalGenerator*> >& GetProjectMap()
|
||||
const {return this->ProjectMap;}
|
||||
|
|
Loading…
Reference in New Issue