summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Syntax/StringCRLF.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Avoid CRLF newlines in Git repo blobsBrad King2017-08-301-6/+6
| | | | | | | | In commit 8ed03baa76 (gitattributes: prefer `eol=crlf` to `-crlf`, 2017-08-23) we left a few CRLF blobs in the repository. Some Git versions get confused by text files with CRLF blobs. Convert them to LF blobs. Use the `eol=crlf` attribute to tell Git to use CRLF on checkout.
* cmListFileLexer: Convert CRLF -> LF newlines explicitlyBrad King2013-10-171-0/+6
Read input files in binary mode instead of text mode and convert CRLF newlines to LF newlines explicitly in our own buffer. This is necessary to read CMake source files with CRLF newlines on platforms whose C runtime libraries do not transform newlines in text mode. For example, a Cygwin or Linux binary may not transform CRLF -> LF in files read from a Windows filesystem. Perform the conversion ourselves to ensure that multi-line string literals in CMake source files have LF newlines everywhere.