diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx index e3cb497739..65da33c99b 100644 --- a/Source/cmGeneratorExpressionNode.cxx +++ b/Source/cmGeneratorExpressionNode.cxx @@ -2963,8 +2963,7 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode // // For COMPATIBLE_INTERFACE_NUMBER_{MAX,MIN} we always compute the value // from this target and the transitive link closure to get the max or min. - if (!haveProp && !target->IsImported() && - target->GetType() != cmStateEnums::INTERFACE_LIBRARY) { + if (!haveProp && !target->IsImported()) { if (target->IsLinkInterfaceDependentBoolProperty(propertyName, context->Config)) { context->HadContextSensitiveCondition = true;