<div dir="ltr">On Thu, Oct 16, 2008 at 6:03 PM, James Bigler <span dir="ltr"><<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'll grant you that I believe the tool should remove the partially<br>
written file, but the tool is out of my hands.<br>
<br>
So let's say I do this for a work around.<br>
<br>
1. Set the output file as a temporary file.<br>
2. Add a second command that moves the temporary file to the desired<br>
output file.<br>
<br>
Questions:<br>
<br>
1. Can CMake help me generate a temporary file name by either giving<br>
me one or helping me find the temporary directory I could put a<br>
temporary file into?</blockquote><div><br>$ENV{TMPDIR} or $ENV{TMP} combined with "if(EXISTS" is about the only help CMake can give you right now w.r.t. a temp file name...<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2. Will CMake stop processing the commands of a custom target once the<br>
previous command produces an error? The help page doesn't say one way<br>
or the other.</blockquote><div><br>Not sure. I'd have to experiment or dig into the code. Your own experiment would probably give you quicker results....<br><br><br>HTH,<br>David<br><br></div></div></div>