[CMake] inconsistent line endings in Visual Studio 2010

Dominik Szczerba dominik at itis.ethz.ch
Thu Feb 17 10:25:45 EST 2011


I see, so I have to play #ifdef tricks with different line endings...
Many thanks for the useful hint!

On Thu, Feb 17, 2011 at 3:58 PM, Andreas Pakulat <apaku at gmx.de> wrote:
> On 17.02.11 15:23:32, Dominik Szczerba wrote:
>> Many thanks for the hint, but I thought printf() would already
>> generate correct endings, no?
>> The file is being generated in the build directory on a target machine.
>> Or is it cmake that does something with the intercepted output?
>
> If you're talking about the C function printf() then no, that one simply
> prints the bytes you give to it. So if you give it only a \n it'll only
> print that. There's no automatic conversion to \r\n in the C library.
>
> Andreas
>
> --
> Your aim is high and to the right.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
>


More information about the CMake mailing list