<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}>)<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!<br></div>Aaron<br></div>