Hello,
2016-02-25 17:58 GMT+03:00 Ruslan Baratov via CMake :
> * since CMake is a cross-platform tool I think it make sense that command
> `file(WRITE "..." "a\nb")` produce identical files on all platforms
Seconded; READ and WRITE could at least have a BINARY flag that does
it so that I don't ha
Hi,
Following code produce same SHA1 on Linux:
cmake_minimum_required(VERSION 3.0)
set(test_string "a\nb")
set(test_file "test.file")
string(SHA1 sha1_string "${test_string}")
file(WRITE "${test_file}" "${test_string}")
file(SHA1 "${test_file}" sha1_file)
message("sha1:"