From cb1afbf466d126f233e93b2cdfa3f5c5dfe5b8f7 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 8 Jan 2013 21:06:24 +0100 Subject: Don't pass a position when determining if a target name is a literal. The lastPos refers to a position in a different string. --- Source/cmExportFileGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index 90c0c41..56b088e 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -270,7 +270,7 @@ cmExportFileGenerator::ResolveTargetsInGeneratorExpressions( } const std::string targetName = input.substr(nameStartPos, endPos - nameStartPos); - if(targetName.find("$<", lastPos) != input.npos) + if(targetName.find("$<") != input.npos) { errorString = "$ requires its parameter to be a " "literal."; -- cgit v0.12