summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-04-08 20:28:55 (GMT)
committerBrad King <brad.king@kitware.com>2009-04-08 20:28:55 (GMT)
commit5886d103348ba7c14e464c851d3316f09cc2c0c6 (patch)
tree49cb0503736b646a6bd0ec066695f2f4ed068bd6 /Source/cmTarget.cxx
parentd49978a948e075afd786fc4ab32c9db95ceafe31 (diff)
downloadCMake-5886d103348ba7c14e464c851d3316f09cc2c0c6.zip
CMake-5886d103348ba7c14e464c851d3316f09cc2c0c6.tar.gz
CMake-5886d103348ba7c14e464c851d3316f09cc2c0c6.tar.bz2
BUG: Fix imported target config guess
When an IMPORTED target provides no generic configuration and no match for a desired configuration then we choose any available configuration. This change corrects the choice when the first listed available configuration does not really have a location.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index a640b0d..09f261d 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -3565,7 +3565,7 @@ void cmTarget::ComputeImportInfo(std::string const& desired_config,
!loc && aci != availableConfigs.end(); ++aci)
{
suffix = "_";
- suffix += cmSystemTools::UpperCase(availableConfigs[0]);
+ suffix += cmSystemTools::UpperCase(*aci);
std::string locProp = "IMPORTED_LOCATION";
locProp += suffix;
loc = this->GetProperty(locProp.c_str());