summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-16 18:27:42 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-25 14:01:56 (GMT)
commit6ead631bf9ec6da8eeca5fb39e5eba80e5022f15 (patch)
treeef88b859d570f0cf8fcaca7d0496bbd6d880518b /Source/cmTarget.h
parentb030a7f1ca89620ad4b51569c991a7c0b8aa05c2 (diff)
downloadCMake-6ead631bf9ec6da8eeca5fb39e5eba80e5022f15.zip
CMake-6ead631bf9ec6da8eeca5fb39e5eba80e5022f15.tar.gz
CMake-6ead631bf9ec6da8eeca5fb39e5eba80e5022f15.tar.bz2
cmTarget: Teach GetLinkInterfaceLibraries to support $<LINK_ONLY>
Add a 'usage_requirements_only' parameter to GetLinkInterfaceLibraries and supporting internal APIs to pass through to ExpandLinkItems so it knows whether to use SetTransitivePropertiesOnly while evaluating generator expressions.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 4930d70..9d1f966 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -280,7 +280,8 @@ public:
LinkInterface const* GetLinkInterface(const std::string& config,
cmTarget const* headTarget) const;
LinkInterface const* GetLinkInterfaceLibraries(const std::string& config,
- cmTarget const* headTarget) const;
+ cmTarget const* headTarget,
+ bool usage_requirements_only) const;
void GetTransitivePropertyTargets(const std::string& config,
cmTarget const* headTarget,
std::vector<cmTarget const*> &libs) const;
@@ -756,12 +757,13 @@ private:
const std::string& config) const;
LinkInterface const*
- GetImportLinkInterface(const std::string& config,
- cmTarget const* head) const;
+ GetImportLinkInterface(const std::string& config, cmTarget const* head,
+ bool usage_requirements_only) const;
const char* ComputeLinkInterfaceLibraries(const std::string& config,
LinkInterface& iface,
cmTarget const* head,
+ bool usage_requirements_only,
bool &exists) const;
LinkImplementation const*