c++ - Resetting detection of source file changes -


sometimes have work on code moves computer clock forward. in case .cpp or .h files latest modification date set future time.

later on, when clock fixed, , compile sources, system rebuilds of project because of latest modification dates in future. each subsequent recompile has same problem.

solution know are:

a) find file has future time , re-save it. method not ideal because project big , takes time windows advanced search find files changed.

b) delete whole project , re-check out svn.

does know how can around problem?

is there perhaps setting in visual studio allow me tell compiler use archive bit instead of last modification date detect source file changes?

or perhaps there recursive modification date reset tool can used in situation?

if problem, i'd ways avoid mucking system time. isolating code under unit tests, or virtual machine, or something.

however, because love powershell:

get-childitem -r . |      ? { $_.lastwritetime -gt ([datetime]::now) } |      set-itemproperty -name "lastwritetime" -value ([datetime]::now) 

Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -