diff options
author | Stephen Kelly <steveire@gmail.com> | 2012-10-03 22:32:39 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-09 12:26:40 (GMT) |
commit | a4985a9af9ed9762c1a51c369981609dd24f7425 (patch) | |
tree | 022561102549a117c00db405b821269f2ff1608e /Source/cmGeneratorExpressionEvaluator.cxx | |
parent | d70650d6c3c94d1d903eb7f21998861d8f7bf2c6 (diff) | |
download | CMake-a4985a9af9ed9762c1a51c369981609dd24f7425.zip CMake-a4985a9af9ed9762c1a51c369981609dd24f7425.tar.gz CMake-a4985a9af9ed9762c1a51c369981609dd24f7425.tar.bz2 |
GenEx: Report actual target name not found, not "0" each time.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluator.cxx')
-rw-r--r-- | Source/cmGeneratorExpressionEvaluator.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/cmGeneratorExpressionEvaluator.cxx b/Source/cmGeneratorExpressionEvaluator.cxx index ad5f83c..80cffe9 100644 --- a/Source/cmGeneratorExpressionEvaluator.cxx +++ b/Source/cmGeneratorExpressionEvaluator.cxx @@ -278,14 +278,15 @@ static const struct TargetPropertyNode : public cmGeneratorExpressionNode std::string propertyName = *parameters.begin(); if (parameters.size() == 2) { + std::string targetName = parameters.front(); target = context->Makefile->FindGeneratorTargetToUse( - parameters.begin()->c_str()); + targetName.c_str()); if (!target) { cmOStringStream e; e << "Target \"" - << target + << targetName << "\" not found."; reportError(context, content->GetOriginalExpression(), e.str()); return std::string(); |