Просмотр исходного кода

Populate the link information cache before checking dependent properties.

The dependent properties check can require the link information.
Stephen Kelly 13 лет назад
Родитель
Сommit
1800f702a0
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      Source/cmTarget.cxx

+ 4 - 4
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;
 }