mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
cmGeneratorExpressionNode: avoid some strlen in $<TARGET_PROPERTY>
This commit is contained in:
1 parent
f9235fd474
commit
6dfd0f9294
1 file changed
+2
-1
@@ -947,7 +947,8 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode
|
|||||||
"Target name not supported.");
|
"Target name not supported.");
|
||||||
return std::string();
|
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 (context->LG->GetMakefile()->IsAlias(targetName)) {
|
||||||
if (cmGeneratorTarget* tgt =
|
if (cmGeneratorTarget* tgt =
|
||||||
context->LG->FindGeneratorTargetToUse(targetName)) {
|
context->LG->FindGeneratorTargetToUse(targetName)) {
|
||||||
|
|||||||
Reference in new issue
Block a user