mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-12 09:20:41 -06:00
Make the cmStrictTargetComparison operate on const cmTarget*.
This commit is contained in:
@@ -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*,
|
||||
|
||||
Reference in New Issue
Block a user