I Create a small test to try replicate the problem and all works Fine at first view and ADD_CUSTOM_COMMAND is called as expected. <br><br>I now thinking that can be a problem in how i concatenate values in OUTPUT of the command, i&nbsp; go to change my script for clean and further inspect this issue.
<br><br>BTW i can buid my system with Cmake :)<br>&nbsp;<br><br><div class="gmail_quote">On Jan 19, 2008 8:02 PM, pepone. onrez &lt;<a href="mailto:pepone.onrez@gmail.com" target="_blank">pepone.onrez@gmail.com</a>&gt; wrote:
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I test various debug messages before my first post here and variable values seems alright. Now ill try to reproduce the problem in a self contained example and post here the results.<br><br>Thanks for all<div><div></div>
<div>
<br><br><div class="gmail_quote">
On Jan 19, 2008 7:15 PM, Brandon Van Every &lt;<a href="mailto:bvanevery@gmail.com" target="_blank">bvanevery@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


I&#39;m going to take a wild guess that one of your variables is emitting<br>extra quotes or open parentheses or something, such that the 2nd<br>ADD_CUSTOM_COMMAND gratuitously disappears. &nbsp;Suggest you message() all<br>your variables to see what they are, and also write a small test case
<br>that simulates the behavior you&#39;re trying to implement, without all<br>the fancy extra logic.<br><div><div></div><div><br>Cheers,<br>Brandon Van Every<br>_______________________________________________
<br>CMake mailing list<br><a href="mailto:CMake@cmake.org" target="_blank">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></div>

</div></blockquote>
</div><br>
</div></div></blockquote></div><br>