file(SHA512SUM) incorrect result on Windows
The checksum produced on Windows is just not equal to that of macOS or Linux when run on binary file. Hence, under CI situation, the checksum validation passes only on platforms which are not Windows.
It happens in the Github Actions virtual environment Windows2019, which includes CMake 3.21.4. I also get a user report which reports exactly the same problem.
References:
- cmake -P script having the problem https://raw.githubusercontent.com/jpcima/ysfx/master/cmake/ValidateSHA512.cmake
- report and message regarding the problem https://github.com/jpcima/ysfx/issues/17
- file which is checksummed https://raw.githubusercontent.com/jpcima/ysfx/master/thirdparty/WDL/source/WDL/eel2/asm-nseel-x64-sse.asm