RC files can be out of sync on Windows on all generators
I've run into an issue where the RC files are not always updated. At first I tought this was Ninja related, but it seems to be on most if not all windows generators. To help illustrate the issue I've created a minimal reproduction, for which you can use the files attached.
You may run the test as following:
cd <build_dir> cmake <source_dir> cmake --build . && cmake -P <source_dir>/run_actual_test.cmake
Note that this requires the sigcheck tool, available at: https://technet.microsoft.com/en-us/sysinternals/bb897441.aspx
This will start a (theoretically) endless loop of building and testing. In practise this will end at some point as the checks verify the RC file being out of sync with the executable.
Note that it can take a while before the issue appears, it is most prevalent with multicore aware generators such as JOM and Ninja