Don't pass a position when determining if a target name is a literal.
The lastPos refers to a position in a different string.
This commit is contained in:
parent
f99196dc0c
commit
cb1afbf466
|
@ -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 = "$<TARGET_NAME:...> requires its parameter to be a "
|
||||
"literal.";
|
||||
|
|
Loading…
Reference in New Issue