diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-01-16 16:54:30 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-01-16 21:43:49 (GMT) |
commit | 1800f702a056b2eb25eb35daf9ed8d6474ecd0f9 (patch) | |
tree | 9d846edc92a12eb8d781548ebfd8c56612c95184 /Source | |
parent | c2ab74acb9230d9218091d3fb5e87b6065f98e0b (diff) | |
download | CMake-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.cxx | 8 |
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; } |