On Wed, Dec 3, 2008 at 8:41 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</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>
&quot; &nbsp; &nbsp;* LF: &nbsp; &nbsp;Multics, Unix and Unix-like systems (GNU/Linux, AIX, Xenix, Mac OS X, FreeBSD, etc.), BeOS, Amiga, RISC OS, and others<br>
 &nbsp; &nbsp;* 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>
 &nbsp; &nbsp;* CR: &nbsp; &nbsp;Commodore machines, Apple II family, Mac OS up to version 9 and OS-9<br>
&quot;<br>
<br>
So, it is just a \r in this file, and not a \r\n. &nbsp; \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... &nbsp;It uses \n as the line ending. &nbsp;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. &nbsp; Robert, how did you create the file, was it the default for some editor?</blockquote></div><br>The problem isn&#39;t about MAC line endings not working. I could care less about line ending requirements, I&#39;ll go with whatever works. The main problem I have is that CMake didn&#39;t TELL me what the problem was. It should have said, &quot;Hey dummy, your line endings are unacceptable. Please change them to LINUX line endings&quot;. That would have saved me hours of time!<br>