summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-16 15:31:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 12:50:08 (GMT)
commit8d15a1bbfbefff919d8a7aa0d04f54d08d1f1a11 (patch)
tree9606f93ffadda147ab3523dad9512d09ee5b534e /Source/cmTarget.h
parent6354df92b12746dcb0f6fa263af2adf649cf1f3f (diff)
downloadCMake-8d15a1bbfbefff919d8a7aa0d04f54d08d1f1a11.zip
CMake-8d15a1bbfbefff919d8a7aa0d04f54d08d1f1a11.tar.gz
CMake-8d15a1bbfbefff919d8a7aa0d04f54d08d1f1a11.tar.bz2
cmTarget: De-duplicate library list expansion
Create an ExpandLinkItems method to handle evaluation of generator expressions in a library list and expansion of the ;-list into a vector. Replace some duplicate copies of the implementation with calls to the new helper.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 3b1b40a..ba3077e 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -764,6 +764,10 @@ private:
void ComputeLinkClosure(const std::string& config, LinkClosure& lc,
cmTarget const* head) const;
+ void ExpandLinkItems(std::string const& prop, std::string const& value,
+ std::string const& config, cmTarget const* headTarget,
+ std::vector<std::string>& libs) const;
+
std::string ProcessSourceItemCMP0049(const std::string& s);
void ClearLinkMaps();