[CMake] newline: for all platforms

Hicham Mouline hicham at mouline.org
Sat Nov 27 12:07:02 EST 2010


Hi,

 

Is there a variable that holds the proper newline for the current platform?

\n for unix linux mac

\n\r for windows



I need a cmake variable that will hold

 

#include "header1.hpp"

#include "header1.hpp"

...

#include "headern.hpp"

 

and that will be replaced by configure_file to generate a .cxx source file
that will contain all these #includes.

The newline is therefore essential

 

regards,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20101127/b20b8ee2/attachment.htm>


More information about the CMake mailing list