On 2/6/07, <b class="gmail_sendername">frederic heem</b> <<a href="mailto:frederic.heem@telsey.it">frederic.heem@telsey.it</a>> 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;">
> ADD_CUSTOM_TARGET(testFoo ...)<br>> ADD_CUSTOM_TARGET(doc-test ...)<br>> ADD_DEPENDENCIES(doc-test testFoo)<br>><br>thanks for the tips, but unfortunately, that's not working as expected,<br>running "make doc-test" 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>