summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2018-01-23 23:30:44 (GMT)
committerBrad King <brad.king@kitware.com>2018-01-31 16:04:35 (GMT)
commit6dfd0f929416dbdf50ca44ebe19418e8a45782ad (patch)
tree179cc72fa94245368c1e0d20c73f6e98f0015f83 /Source
parentf9235fd474682ba95231de0bc7285a39e35db83f (diff)
downloadCMake-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.cxx3
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)) {