[CMake] cmake locks when parsing a fortran file ending with a
comment and not end-of-line
lucatrv
lucatrv at hotmail.com
Tue Jun 5 13:40:41 EDT 2007
As the subject says, I found that cmake locks when parsing a file ending
with a comment and without an end-of-line character. At least this happens
with fortran files, but I suspect it could happen also with other languages
(though I've not tested it).
However, I send enclosed a simple fortran code file which reproduce the bug.
Of course, under linux it is sufficient to open the file and resave it to
correct the problem (then you can use diff to understand that the only
difference is that the file was added with an end-of-line character).
However, under windows, many editors don't care of adding an end-of-line
character at the end of edited files (and in particular MS visual studio
doen't do), so many projects can have such files, and I think cmake should
be able to parse them.
Luca
-------------- next part --------------
PROGRAM TEST
PRINT *, TEST
END ! comment
More information about the CMake
mailing list