[cmake-developers] file(GENERATE) newline behavior (was: Trailing newline in CMakeConfigurableFile.in)

Brad King brad.king at kitware.com
Wed May 6 13:41:58 EDT 2015


On 05/06/2015 01:29 PM, Ben Boeckel wrote:
> file(GENERATE) does not document its newline behavior (nor does it have
> options for setting it at all). Does it write in text or binary mode?

>From the source it looks like it opens without the ios::binary flag.
One could consider adding a similar set of newline options to
file(GENERATE) that configure_file already has.

-Brad



More information about the cmake-developers mailing list