summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-12-19 15:12:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-12-19 15:12:42 (GMT)
commita1e58db6757f49d727831852cd8421c64d69ddf5 (patch)
tree41ae272b92c5dac8ebac44de81022e98cb2d59ee /Source
parentbddc437d35750b49ff26178f823049a5ca0ebc83 (diff)
parent3b8e56a50f7f608f7a93f8ecf23392cc2cda4868 (diff)
downloadCMake-a1e58db6757f49d727831852cd8421c64d69ddf5.zip
CMake-a1e58db6757f49d727831852cd8421c64d69ddf5.tar.gz
CMake-a1e58db6757f49d727831852cd8421c64d69ddf5.tar.bz2
Merge topic 'fix-INTERFACE-mapped-config'
3b8e56a Don't search for IMPORTED_LOCATION of INTERFACE_LIBRARY (14636)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 38fe945..51ee31a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -4860,6 +4860,15 @@ bool cmTarget::GetMappedConfig(std::string const& desired_config,
const char** imp,
std::string& suffix) const
{
+ if (this->GetType() == INTERFACE_LIBRARY)
+ {
+ // This method attempts to find a config-specific LOCATION for the
+ // IMPORTED library. In the case of INTERFACE_LIBRARY, there is no
+ // LOCATION at all, so leaving *loc and *imp unchanged is the appropriate
+ // and valid response.
+ return true;
+ }
+
// Track the configuration-specific property suffix.
suffix = "_";
suffix += desired_config;
@@ -4992,8 +5001,7 @@ void cmTarget::ComputeImportInfo(std::string const& desired_config,
const char* loc = 0;
const char* imp = 0;
std::string suffix;
- if (this->GetType() != INTERFACE_LIBRARY &&
- !this->GetMappedConfig(desired_config, &loc, &imp, suffix))
+ if (!this->GetMappedConfig(desired_config, &loc, &imp, suffix))
{
return;
}