summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-16 14:36:21 (GMT)
committerBrad King <brad.king@kitware.com>2014-06-23 13:17:06 (GMT)
commit6f0951af011d28366cf31ff621238f026cb8d895 (patch)
treebd71982f8ccb160641c4263efe4e65edeed2bce6 /Source/cmTarget.h
parent0dc9e88d76fa74440fc3b38032738a21ce72f2d7 (diff)
downloadCMake-6f0951af011d28366cf31ff621238f026cb8d895.zip
CMake-6f0951af011d28366cf31ff621238f026cb8d895.tar.gz
CMake-6f0951af011d28366cf31ff621238f026cb8d895.tar.bz2
cmTarget: Drop 'head' target from GetImportInfo
Move generator expression evaluation for imported library lists out of GetImportInfo and into a new GetImportLinkInterface helper. This avoids duplicating the computation and storage of all imported target info just because some of it is parameterized on the 'head' target.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 8cf962f..0773194 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -730,10 +730,9 @@ private:
// Cache import information from properties for each configuration.
struct ImportInfo;
- ImportInfo const* GetImportInfo(const std::string& config,
- cmTarget const* workingTarget) const;
- void ComputeImportInfo(std::string const& desired_config, ImportInfo& info,
- cmTarget const* head) const;
+ ImportInfo const* GetImportInfo(const std::string& config) const;
+ void ComputeImportInfo(std::string const& desired_config,
+ ImportInfo& info) const;
// Cache target compile paths for each configuration.
struct CompileInfo;
@@ -743,6 +742,10 @@ private:
void CheckPropertyCompatibility(cmComputeLinkInformation *info,
const std::string& config) const;
+ LinkInterface const*
+ GetImportLinkInterface(const std::string& config,
+ cmTarget const* head) const;
+
const char* ComputeLinkInterfaceLibraries(const std::string& config,
LinkInterface& iface,
cmTarget const* head,