file(CONFIGURE) mishandles newlines on macOS if newline style is not explicitly specified
Consider the following small code sample:
file(CONFIGURE OUTPUT multiline.txt CONTENT [[
method=custom
command=do_something_interesting
]])
If I run that through cmake -P ...
on a macOS system and look at the resulting file that is generated, it looks like this:
method=customcommand=do_something_interesting
I have to explicitly add the NEWLINE_STYLE
option to the file(CONFIGURE)
command to get the expected output. It doesn't seem to matter which one of the supported newline style values I give it.
method=custom
command=do_something_interesting
I am using CMake 3.19.3