mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
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).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user