Server mode writes file with LF endings on Windows
Using a trivial
CMakeLists.txt as below I reproduced an issue which can be annoying if you are dependent on checksums being equal (such as with Hunter). The file has an LF line ending if a CMake server is doing the "configure" step, but CRLF otherwise. Using
\r\n produces CRLF in both cases. I am not entirely sure which is concidered correct, but in any case they are different from eachother. This was tested with CMake 3.7.2.
cmake_minimum_required(VERSION 3.7) project(top_kek CXX) file(WRITE "test.txt" "hello world\n")