summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-11 14:40:36 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 13:14:44 (GMT)
commit56aed7005ae17e979f4635240539041e66d9220a (patch)
treed11b9a8cf1d17aeb6b58e18ea294329f1125a232 /Source/cmTarget.h
parentcbf689c7dd39dc0952361b63e8322a0408b4569b (diff)
downloadCMake-56aed7005ae17e979f4635240539041e66d9220a.zip
CMake-56aed7005ae17e979f4635240539041e66d9220a.tar.gz
CMake-56aed7005ae17e979f4635240539041e66d9220a.tar.bz2
cmTarget: Cache GetLinkImplementationClosure results
Store them internally and return by reference to avoid duplicate computation.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 2211338..86108b7 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -276,8 +276,8 @@ public:
void GetTransitivePropertyTargets(const std::string& config,
cmTarget const* headTarget,
std::vector<cmTarget*> &libs) const;
- void GetLinkImplementationClosure(const std::string& config,
- std::vector<cmTarget*> &libs) const;
+ std::vector<cmTarget*> const&
+ GetLinkImplementationClosure(const std::string& config) const;
/** The link implementation specifies the direct library
dependencies needed by the object files of the target. */