mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03: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:
1 parent
86f99c5f6d
commit
061f7a6b97
1 file changed
+1
-2
@@ -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