Commit 8a275e79 authored by Brad King's avatar Brad King
Browse files

BUG: Multi-line functions must also increment line number, not the pointer.

parent be66f581
...@@ -220,7 +220,7 @@ bool cmListFileCache::ParseFunction(std::ifstream& fin, ...@@ -220,7 +220,7 @@ bool cmListFileCache::ParseFunction(std::ifstream& fin,
// read lines until the end paren is found // read lines until the end paren is found
if(fin.getline(inbuffer, BUFFER_SIZE ) ) if(fin.getline(inbuffer, BUFFER_SIZE ) )
{ {
++line; if(line) { ++*line; }
RemoveComments(inbuffer); RemoveComments(inbuffer);
// Check for comment lines and ignore them. // Check for comment lines and ignore them.
if(blankLine.find(inbuffer)) if(blankLine.find(inbuffer))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment