Populate the link information cache before checking dependent properties.

The dependent properties check can require the link information.
This commit is contained in:
Stephen Kelly 2013-01-16 17:54:30 +01:00
parent c2ab74acb9
commit 1800f702a0
1 changed files with 4 additions and 4 deletions

View File

@ -5422,14 +5422,14 @@ cmTarget::GetLinkInformation(const char* config, cmTarget *head)
info = 0;
}
// Store the information for this configuration.
cmTargetLinkInformationMap::value_type entry(key, info);
i = this->LinkInformation.insert(entry).first;
if (info)
{
this->CheckPropertyCompatibility(info, config);
}
// Store the information for this configuration.
cmTargetLinkInformationMap::value_type entry(key, info);
i = this->LinkInformation.insert(entry).first;
}
return i->second;
}