summaryrefslogtreecommitdiffstats
path: root/Source/cmComputeLinkDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-30 14:28:08 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-07 12:52:36 (GMT)
commit82e91e34872fd8fa394d14f1e4fac60f9e993a35 (patch)
tree3c8b6ca0a2061972baa8df310acfa3daa2dd1f9e /Source/cmComputeLinkDepends.h
parent477b07213a806c825f95fdfacd444028e1783dc2 (diff)
downloadCMake-82e91e34872fd8fa394d14f1e4fac60f9e993a35.zip
CMake-82e91e34872fd8fa394d14f1e4fac60f9e993a35.tar.gz
CMake-82e91e34872fd8fa394d14f1e4fac60f9e993a35.tar.bz2
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 3207ecb..a931726 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);