[cfe-dev] Why copy_if_different?

Francois Pichet pichet2000 at gmail.com
Fri Apr 29 02:15:34 PDT 2011


On Fri, Apr 29, 2011 at 5:09 AM, Yuri Gribov <tetra2005 at googlemail.com> wrote:
> Hi all,
>
> What is the reason for custom build rules in Visual Studion using
> 'cmake -E copy_if_different' instead of plain 'cmake -E copy'? If
> target file is older than source but contents is the same the source
> will not be copied and the timestamp of target will remain the same.
> This means that VS will try to rebuild this file (and a dozen of
> dependent projects) on every run (I observe this particular behavior
> on my system).

I too observed this behaviour with MSVC 2008 but not with MSVC 2010.
That's one of the reason i switched from 2008 to 2010.



More information about the cfe-dev mailing list