summaryrefslogtreecommitdiff
path: root/Source/cmComputeLinkDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-30 10:28:08 -0400
committerBrad King <brad.king@kitware.com>2014-07-07 08:52:36 -0400
commit82e91e34872fd8fa394d14f1e4fac60f9e993a35 (patch)
tree3c8b6ca0a2061972baa8df310acfa3daa2dd1f9e /Source/cmComputeLinkDepends.h
parent477b07213a806c825f95fdfacd444028e1783dc2 (diff)
downloadcmake-82e91e34872fd8fa394d14f1e4fac60f9e993a35.tar.gz
cmComputeLinkDepends: Convert AddLinkEntries to a template
Allow the method to be called with a vector of any type that can be converted to cmLinkItem.
Diffstat (limited to 'Source/cmComputeLinkDepends.h')
-rw-r--r--Source/cmComputeLinkDepends.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmComputeLinkDepends.h b/Source/cmComputeLinkDepends.h
index 3207ecbf5d..a931726d9b 100644
--- a/Source/cmComputeLinkDepends.h
+++ b/Source/cmComputeLinkDepends.h
@@ -80,8 +80,8 @@ private:
int AddLinkEntry(cmLinkItem const& item);
void AddVarLinkEntries(int depender_index, const char* value);
void AddDirectLinkEntries();
- void AddLinkEntries(int depender_index,
- std::vector<cmLinkItem> const& libs);
+ template <typename T>
+ void AddLinkEntries(int depender_index, std::vector<T> const& libs);
cmTarget const* FindTargetToLink(int depender_index,
const std::string& name);