diff options
author | Brad King <brad.king@kitware.com> | 2014-06-30 14:38:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-07 12:52:39 (GMT) |
commit | 848c8ccf18e325e0d2833ac468f733261832feca (patch) | |
tree | 543d9c163c087b5e1dacd1a0a9607ebaaab64f7d /Source/cmTarget.h | |
parent | f85ccf23eeec08fff46c0788b8ee357b3f5220e4 (diff) | |
download | CMake-848c8ccf18e325e0d2833ac468f733261832feca.zip CMake-848c8ccf18e325e0d2833ac468f733261832feca.tar.gz CMake-848c8ccf18e325e0d2833ac468f733261832feca.tar.bz2 |
cmTarget: Refactor LinkImplementation to allow more information
Create a cmLinkImplItem class derived from cmLinkItem so more
information can be added to link implementation entries than link
interface entries. Convert the LinkImplementation Libraries member to
hold it. Update client sites accordingly.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 9d1f966..8578c51 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -54,6 +54,16 @@ public: cmLinkItem(cmLinkItem const& r): std_string(r), Target(r.Target) {} cmTarget const* Target; }; +class cmLinkImplItem: public cmLinkItem +{ +public: + cmLinkImplItem(): cmLinkItem() {} + cmLinkImplItem(std::string const& n, + cmTarget const* t): + cmLinkItem(n, t) {} + cmLinkImplItem(cmLinkImplItem const& r): + cmLinkItem(r) {} +}; struct cmTargetLinkInformationMap: public std::map<std::string, cmComputeLinkInformation*> @@ -296,7 +306,7 @@ public: std::vector<std::string> Languages; // Libraries linked directly in this configuration. - std::vector<cmLinkItem> Libraries; + std::vector<cmLinkImplItem> Libraries; // Libraries linked directly in other configurations. // Needed only for OLD behavior of CMP0003. |