Make the cmStrictTargetComparison operate on const cmTarget*.

This commit is contained in:
Stephen Kelly 2013-12-04 13:35:39 +01:00
parent 8cc3cdb614
commit 259bf0918c
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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*,