diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index c8f532e57..07da31fc0 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4699,6 +4699,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;