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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to