On Wed, Dec 3, 2008 at 8:41 PM, Bill Hoffman <span dir="ltr"><<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<a href="http://en.wikipedia.org/wiki/End-of-line" target="_blank">http://en.wikipedia.org/wiki/End-of-line</a><br>
<br>
" * LF: Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others<br>
* CR+LF: DEC RT-11 and most other early non-Unix, non-IBM OSes, CP/M, MP/M, DOS, OS/2, Microsoft Windows, Symbian OS<br>
* CR: Commodore machines, Apple II family, Mac OS up to version 9 and OS-9<br>
"<br>
<br>
So, it is just a \r in this file, and not a \r\n. \r\n is Windows, and unix uses \n only.<br>
<br>
I guess the problem is in the lexer CMake uses, and not the C++ library... It uses \n as the line ending. That works on but unix and windows, but not with \r only mac files.<br>
<br>
I suppose we could put a check to see if a file has no \n, but lots of \r, and complain that it is an invalid file. Robert, how did you create the file, was it the default for some editor?</blockquote></div><br>The problem isn't about MAC line endings not working. I could care less about line ending requirements, I'll go with whatever works. The main problem I have is that CMake didn't TELL me what the problem was. It should have said, "Hey dummy, your line endings are unacceptable. Please change them to LINUX line endings". That would have saved me hours of time!<br>