From 1800f702a056b2eb25eb35daf9ed8d6474ecd0f9 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 16 Jan 2013 17:54:30 +0100 Subject: Populate the link information cache before checking dependent properties. The dependent properties check can require the link information. --- Source/cmTarget.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 815da40..45862fb 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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; } -- cgit v0.12