diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-23 23:30:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-31 16:04:35 (GMT) |
commit | 6dfd0f929416dbdf50ca44ebe19418e8a45782ad (patch) | |
tree | 179cc72fa94245368c1e0d20c73f6e98f0015f83 /Source | |
parent | f9235fd474682ba95231de0bc7285a39e35db83f (diff) | |
download | CMake-6dfd0f929416dbdf50ca44ebe19418e8a45782ad.zip CMake-6dfd0f929416dbdf50ca44ebe19418e8a45782ad.tar.gz CMake-6dfd0f929416dbdf50ca44ebe19418e8a45782ad.tar.bz2 |
cmGeneratorExpressionNode: avoid some strlen in $<TARGET_PROPERTY>
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorExpressionNode.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionNode.cxx b/Source/cmGeneratorExpressionNode.cxx index 34ef45f..5e3e810 100644 --- a/Source/cmGeneratorExpressionNode.cxx +++ b/Source/cmGeneratorExpressionNode.cxx @@ -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)) { |