summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-11-09 14:49:49 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-11-09 14:49:49 (GMT)
commit453df662bafe52ec87e0972323cf87ec737f3437 (patch)
treecf5326c1c63bfee5079353699bcc09d982e4fe66 /Source/cmGeneratorTarget.cxx
parent25085f41b20f7f5a5fb25e8ab683f77476f917a2 (diff)
parent09cda9d5e7bb31f05177bdaf11d24aeaf85a8dd3 (diff)
downloadCMake-453df662bafe52ec87e0972323cf87ec737f3437.zip
CMake-453df662bafe52ec87e0972323cf87ec737f3437.tar.gz
CMake-453df662bafe52ec87e0972323cf87ec737f3437.tar.bz2
Merge topic 'imported-interface-libname'
09cda9d5 Allow imported INTERFACE libraries to specify a link library name 1d1f1eeb cmTarget: Refactor GetMappedConfig to choose location property up front 479932fa cmTarget: Add comment clarifying interface library special case 925e4270 cmTarget: Clarify comments in GetMappedConfig
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r--Source/cmGeneratorTarget.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index 1a454ac..903bcec 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -2798,6 +2798,16 @@ void cmGeneratorTarget::ComputeTargetManifest(const std::string& config) const
}
}
+std::string cmGeneratorTarget::GetImportedLibName(
+ std::string const& config) const
+{
+ if (cmGeneratorTarget::ImportInfo const* info =
+ this->GetImportInfo(config)) {
+ return info->LibName;
+ }
+ return std::string();
+}
+
std::string cmGeneratorTarget::GetFullPath(const std::string& config,
bool implib, bool realname) const
{
@@ -4713,6 +4723,9 @@ void cmGeneratorTarget::ComputeImportInfo(std::string const& desired_config,
}
}
if (this->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
+ if (loc) {
+ info.LibName = loc;
+ }
return;
}