diff options
author | Brad King <brad.king@kitware.com> | 2016-11-09 14:49:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-11-09 14:49:49 (GMT) |
commit | 453df662bafe52ec87e0972323cf87ec737f3437 (patch) | |
tree | cf5326c1c63bfee5079353699bcc09d982e4fe66 /Source/cmGeneratorTarget.cxx | |
parent | 25085f41b20f7f5a5fb25e8ab683f77476f917a2 (diff) | |
parent | 09cda9d5e7bb31f05177bdaf11d24aeaf85a8dd3 (diff) | |
download | CMake-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.cxx | 13 |
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; } |