cmGeneratorExpressionNode: avoid some strlen in $<TARGET_PROPERTY>

This commit is contained in:
Ben Boeckel 2018-01-23 18:30:44 -05:00 committed by Brad King
parent f9235fd474
commit 6dfd0f9294

View File

@ -947,7 +947,8 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
"Target name not supported.");
return std::string();
}
if (propertyName == "ALIASED_TARGET") {
static const std::string propALIASED_TARGET = "ALIASED_TARGET";
if (propertyName == propALIASED_TARGET) {
if (context->LG->GetMakefile()->IsAlias(targetName)) {
if (cmGeneratorTarget* tgt =
context->LG->FindGeneratorTargetToUse(targetName)) {