[cmake-developers] [RFC] Trailing newline in CMakeConfigurableFile.in
Brad King
brad.king at kitware.com
Wed May 6 11:15:55 EDT 2015
On 05/05/2015 05:44 PM, Ben Boeckel wrote:
> Should CMakeConfigurableFile.in have a trailing newline?
Prior to a fix in CMake 3.1:
CMakeConfigurableFile: Remove excess newline.
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e2f09aff
it actually had *two* trailing newlines.
> at least some documentation that a (native) newline is implicit at the
> end of the configured file.
Currently CMakeConfigurableFile.in is not documented at all. One could
document it and add a version without a newline. However, see below.
> A version without a newline at the end might
> be wanted as well in case literal *nix- or Windows-style newlines are
> required for the format of the file being configured.
Is there any reason not to use file(GENERATE) instead?
-Brad
More information about the cmake-developers
mailing list