Make the cmStrictTargetComparison operate on const cmTarget*.
This commit is contained in:
parent
8cc3cdb614
commit
259bf0918c
|
@ -693,7 +693,8 @@ void cmGeneratorTarget::GenerateTargetManifest(const char* config) const
|
|||
}
|
||||
}
|
||||
|
||||
bool cmStrictTargetComparison::operator()(cmTarget *t1, cmTarget *t2) const
|
||||
bool cmStrictTargetComparison::operator()(cmTarget const* t1,
|
||||
cmTarget const* t2) const
|
||||
{
|
||||
int nameResult = strcmp(t1->GetName(), t2->GetName());
|
||||
if (nameResult == 0)
|
||||
|
|
|
@ -101,7 +101,7 @@ private:
|
|||
};
|
||||
|
||||
struct cmStrictTargetComparison {
|
||||
bool operator()(cmTarget *t1, cmTarget *t2) const;
|
||||
bool operator()(cmTarget const* t1, cmTarget const* t2) const;
|
||||
};
|
||||
|
||||
typedef std::map<cmTarget*,
|
||||
|
|
Loading…
Reference in New Issue