mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'property-link-depends-no-crash'
ab079eeAvoid crash when checking property compatibility without link info92a2ab7Avoid crash when checking property link dependencies without link info
This commit is contained in:
@@ -4753,6 +4753,10 @@ PropertyType checkInterfacePropertyCompatibility(cmTarget *tgt,
|
||||
|| (!impliedByUse && !explicitlySet));
|
||||
|
||||
cmComputeLinkInformation *info = tgt->GetLinkInformation(config);
|
||||
if(!info)
|
||||
{
|
||||
return propContent;
|
||||
}
|
||||
const cmComputeLinkInformation::ItemVector &deps = info->GetItems();
|
||||
bool propInitialized = explicitlySet;
|
||||
|
||||
@@ -4893,6 +4897,10 @@ bool isLinkDependentProperty(cmTarget *tgt, const std::string &p,
|
||||
const char *config)
|
||||
{
|
||||
cmComputeLinkInformation *info = tgt->GetLinkInformation(config);
|
||||
if(!info)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
const cmComputeLinkInformation::ItemVector &deps = info->GetItems();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user