summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-16 16:54:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-01-16 21:43:49 (GMT)
commit1800f702a056b2eb25eb35daf9ed8d6474ecd0f9 (patch)
tree9d846edc92a12eb8d781548ebfd8c56612c95184 /Source
parentc2ab74acb9230d9218091d3fb5e87b6065f98e0b (diff)
downloadCMake-1800f702a056b2eb25eb35daf9ed8d6474ecd0f9.zip
CMake-1800f702a056b2eb25eb35daf9ed8d6474ecd0f9.tar.gz
CMake-1800f702a056b2eb25eb35daf9ed8d6474ecd0f9.tar.bz2
Populate the link information cache before checking dependent properties.
The dependent properties check can require the link information.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmTarget.cxx8
1 files 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;
}