VS: CUSTOMBUILD : CMake error : Cannot restore timestamp
After bumping CMake in our toolchain from 3.18.1 to 3.19.1 we have started to see sporadic errors in the CI on Windows. The failure rate is probably a few percent.
The issue is never seen on Linux even though we probably run CMake 10x more there and also much more during local development. I will update the issue if we see it on Linux, but my guess is that this is Windows(VS generator) specific regression.
The issue is seen for multiple projects, not just one, and it happens at build time using cmake --build
. We use the 64bit VS generator. We did not change any other part of the toolchain at the same time.
We run CMake with as many diagnostics and warnings (as errors) as possible, and the configure step completes without issues.
The exact error message is:
CUSTOMBUILD : CMake error : Cannot restore timestamp C:/Users/vagrant/.../generate.stamp [C:\Users\vagrant\....vcxproj]