2016-10-14 19:34 GMT+02:00 Aaron Boxer :
> I have the following lines in my cmake file
>
>
> foreach(f ${MyFiles})
> add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD
> COMMAND ${CMAKE_COMMAND} -E
> copy ${f}
"copy" should always overwrite.
"copy_if_different" will conditionally overwrite, only if the contents
of the two files are different.
If "copy" was not overwriting something when it should have been,
please send steps to reproduce the issue, because that would be a bug.
HTH,
David C.
On
Never mind, figured this one out:
use copy_if_different
On Fri, Oct 14, 2016 at 1:34 PM, Aaron Boxer wrote:
> I have the following lines in my cmake file
>
>
> foreach(f ${MyFiles})
> add_custom_command(TARGET ${OPENJPEG_PLUGIN_NAME} PRE_BUILD
>