diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-06-06 11:08:17 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-01 17:46:19 (GMT) |
commit | faec4e611d08ea2f75d2127e3ca3f5e9a427465b (patch) | |
tree | ab775b2bf9a9a4517204b700e4add7e41ca726c3 /Source/cmTargetDepend.h | |
parent | 7e3ac12df45fa42b590971accaf1db89b1a0ffb6 (diff) | |
download | CMake-faec4e611d08ea2f75d2127e3ca3f5e9a427465b.zip CMake-faec4e611d08ea2f75d2127e3ca3f5e9a427465b.tar.gz CMake-faec4e611d08ea2f75d2127e3ca3f5e9a427465b.tar.bz2 |
cmComputeTargetDepends: Change API to use cmGeneratorTarget.
Diffstat (limited to 'Source/cmTargetDepend.h')
-rw-r--r-- | Source/cmTargetDepend.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/cmTargetDepend.h b/Source/cmTargetDepend.h index 1feb072..c5059ee 100644 --- a/Source/cmTargetDepend.h +++ b/Source/cmTargetDepend.h @@ -14,23 +14,24 @@ #include "cmStandardIncludes.h" -class cmTarget; +class cmGeneratorTarget; /** One edge in the global target dependency graph. It may be marked as a 'link' or 'util' edge or both. */ class cmTargetDepend { - cmTarget const* Target; + cmGeneratorTarget const* Target; // The set order depends only on the Target, so we use // mutable members to acheive a map with set syntax. mutable bool Link; mutable bool Util; public: - cmTargetDepend(cmTarget const* t): Target(t), Link(false), Util(false) {} - operator cmTarget const*() const { return this->Target; } - cmTarget const* operator->() const { return this->Target; } - cmTarget const& operator*() const { return *this->Target; } + cmTargetDepend(cmGeneratorTarget const* t) + : Target(t), Link(false), Util(false) {} + operator cmGeneratorTarget const*() const { return this->Target; } + cmGeneratorTarget const* operator->() const { return this->Target; } + cmGeneratorTarget const& operator*() const { return *this->Target; } friend bool operator < (cmTargetDepend const& l, cmTargetDepend const& r) { return l.Target < r.Target; } void SetType(bool strong) const |