On 2/6/07, <b class="gmail_sendername">frederic heem</b> &lt;<a href="mailto:frederic.heem@telsey.it">frederic.heem@telsey.it</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; ADD_CUSTOM_TARGET(testFoo ...)<br>&gt; ADD_CUSTOM_TARGET(doc-test ...)<br>&gt; ADD_DEPENDENCIES(doc-test testFoo)<br>&gt;<br>thanks for the tips,&nbsp;&nbsp;but unfortunately, that&#39;s not working as expected,<br>running &quot;make doc-test&quot; results in
<br>testFoo1<br>doc-test<br>testFoo2<br>doc-test<br>testFoo3<br>doc-test<br>etc ...<br><br>The target doc-test shall run only once at the end when all target testFoon<br>are executed.<br></blockquote></div><br>Please reproduce with a small test case that you can forward to the list. (Or send your CMakeLists...) If doc-test depends on all of the testFoo* targets, then it should not run until *all* of the testFoo* targets have been built. I use this technique in several projects and it works for me. What version of CMake are you using?
<br><br>Thx,<br>David<br><br>