cmGeneratorExpression: Consolidate recognition of transitive properties

This commit is contained in:
Brad King
2024-04-12 11:48:41 -04:00
parent 5f7d8192da
commit 895efd4e7a
3 changed files with 20 additions and 12 deletions

View File

@@ -2916,10 +2916,8 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
return std::string();
}
} else {
#define ASSERT_TRANSITIVE_PROPERTY_METHOD(METHOD) dagCheckerParent->METHOD() ||
assert(CM_FOR_EACH_TRANSITIVE_PROPERTY_METHOD(
ASSERT_TRANSITIVE_PROPERTY_METHOD) false); // NOLINT(clang-tidy)
#undef ASSERT_TRANSITIVE_PROPERTY_METHOD
assert(dagCheckerParent
->EvaluatingTransitiveProperty()); // NOLINT(clang-tidy)
}
}