Show us the surrounding code (i.e. -- the actual copy command)<br><br><br><div class="gmail_quote">On Thu, Feb 10, 2011 at 10:40 AM, Clifford Yapp <span dir="ltr"><<a href="mailto:cliffyapp@gmail.com">cliffyapp@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I'm seeing an extremely strange behavior with<br>
add_custom_command/add_custom_target, and I'm not sure what's causing<br>
it.<br>
<br>
Background: I'm trying to copy large numbers of files in batch lots<br>
during the make process, with a custom target that depends on a list<br>
of files and runs a single copy process (cmake -P file.cmake where<br>
file.cmake contains the list and the FILE(COPY command) to copy them<br>
all in one gulp if any of them changes.<br>
<br>
This works, but some of the copy processes do not terminate (i.e.<br>
multiple calls to make result in the copy happening each time, even<br>
though the files have already been copied.) The termination failures<br>
appear to be consistent, but for the life of me I can't figure out<br>
what is causing them. I have a list:<br>
<br>
SET(tclscripts_TCLSCRIPTS<br>
ami.tcl<br>
ampi.tcl<br>
cad_clrpick.tcl<br>
cad_dialog.tcl<br>
chkexterns.tcl<br>
<a href="http://fs_dialog.tk" target="_blank">fs_dialog.tk</a><br>
helpcomm.tcl<br>
helplib.tcl<br>
hoc.tcl<br>
html_library.tcl<br>
libdm.tcl<br>
menu_override.tcl<br>
mouse.tcl<br>
vmath.tcl<br>
)<br>
<br>
This list fails every time to terminate. However, if I comment out<br>
either the first or the second entry (but NOT other entries, although<br>
my testing has not been exhaustive) it DOES terminate. There is<br>
nothing special about either of the two first files that I can<br>
discover. Also, if I comment out one of those two and add another<br>
file, the termination failure returns.<br>
<br>
It's not terribly critical, but it is rather disturbing that these<br>
copy commands keep getting run when I can't see any reason for it.<br>
Has anybody seen behavior like this? How would I check what is<br>
triggering the copy? I can try to cook up a more minimal test case if<br>
there is a need, but it's difficult to be sure I can reproduce it in a<br>
contained test because I don't know for sure what's happening. Any<br>
help appreciated.<br>
<br>
Thanks,<br>
CY<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>