From 061f7a6b9756bafa2d3d2f0ce86b6abd2b2e4598 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 11 Apr 2024 15:11:58 -0400 Subject: [PATCH] GenEx: Remove redundant condition in COMPATIBLE_INTERFACE_ evaluation The `IsLinkInterfaceDependent*Property` methods internally exclude INTERFACE libraries since commit 0bfcb450e6 (INTERFACE_LIBRARY: Avoid codepaths which set unneeded properties., 2013-11-20, v3.0.0-rc1~301^2~1). --- Source/cmGeneratorExpressionNode.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;