<div dir="ltr"><div>Never mind, figured this one out:<br><br></div>use copy_if_different<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 14, 2016 at 1:34 PM, Aaron Boxer <span dir="ltr"><<a href="mailto:boxerab@gmail.com" target="_blank">boxerab@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>I have the following lines in my cmake file<br><br><br>foreach(f ${MyFiles})<br>  add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD<br>                     COMMAND ${CMAKE_COMMAND} -E<br>                         copy ${f} $<TARGET_FILE_DIR:${MY_FOLDER}<wbr>>)<br>endforeach()<br><br></div>in order to copy MyFiles to MyFolder.<br><br><br></div>If these files already exist, I would like copy to overwrite the old file.<br></div>Is there a flag to pass to copy to force this to overwrite?<br><br></div>Thanks!<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">Aaron<br></font></span></div>
</blockquote></div><br></div>