Thank you for your explanations.<br><br>It makes sense indeed. I will try what you have suggested before and see how it goes.<br><br>Thank you again for your help.<br><br>Cheers,<br><br><div class="gmail_quote">2010/1/18 David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><div class="gmail_quote">On Mon, Jan 18, 2010 at 10:14 AM, Romain CHANU <span dir="ltr">&lt;<a href="mailto:romainchanu@gmail.com" target="_blank">romainchanu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Yes I knew for the GENERATED option. <br><br>This solution is a good work-around but still, it would be nice if CMake could handle the situation this way:<br><br># Generate Java / XML binding files <br>add_custom_command(<br>


  OUTPUT  ${CMAKE_CURRENT_BINARY_DIR}/src/*.java<br>  COMMAND ${JAVA_PATH}/xjc ${CMAKE_SOURCE_DIR}/xsd/*.xsd<br>  DEPENDS ${CMAKE_SOURCE_DIR}/xsd/*.xsd<br>  COMMENT &quot;Invoking xjc to generate Java binding files&quot;)<br>


<br>The OUTPUT, DEPENDS could handle regex strings.<br><br>What do you think?<br></blockquote><div><br></div></div></div>I think you don&#39;t realize what you&#39;re asking for here... You&#39;re basically asking cmake to analyze a set of directories for an unknown set of files for a single custom command invocation **every time you type &quot;make&quot; ** -- we intentionally do not support this scenario for performance reasons.<br>

<br>We try to keep the &quot;do nothing make&quot; case as fast as possible and this sort of feature would have a negative impact on that performance.<br><br>File DEPENDS sets must be explicit.<br><br>
</blockquote></div><br>