Pārlūkot izejas kodu

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).
Brad King 1 gadu atpakaļ
vecāks
revīzija
061f7a6b97
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      Source/cmGeneratorExpressionNode.cxx

+ 1 - 2
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;