I sometimes have to work on code that involves me moving my clock ahead forward. In this case some .cpp or .h files get their last modification date updated to the future time as I work on them.
Later when my clock is fixed, and I go to compile, it requires a rebuild of most of the project because some of the last modification dates are in the future. Each subsequent recompile has the same problem.
My only known solution at this point is to:
a) find the file that has the future time and re-save it. This method is not ideal because the project is very big and it takes time even for windows advanced search to find the files that are changed.
or b) delete the whole project and re-check it out from svn.
Does anyone know how I can get around this problem?
Is there perhaps a setting in visual studio that will allow me to tell the compiler to use the archive bit instead of the last modification date to detect source file changes?
Or perhaps a recursive modification date reset tool I can run?