ADD_DEPENDENCIES(doc test1)
Your ADD_DEPENDENCIES command says "doc depends on test1 -- make sure the
test1 target builds first before the doc target"... Is that what you want?
If you want it the other way around, then you just need to swap the args to
ADD_DEPENDENCIES.
The CMake source tree itself has several examples of ADD_DEPENDENCIES. The
main one that popped out of my grep results is:
ADD_DEPENDENCIES(CMakeSetup cmake)
...which says "CMakeSetup depends on cmake -- make sure cmake is built
before CMakeSetup"...
HTH,
David
On 2/6/07, frederic heem <[EMAIL PROTECTED]> wrote:
Hi,
Here is the test case:
top level CMakeLists.txt:
ADD_CUSTOM_TARGET(doc
COMMAND echo "doc"
COMMENT "generate the documentation")
SUBDIRS(test1)
test1 CMakeLists.txt:
ADD_CUSTOM_TARGET(test1
COMMAND echo "test1"
COMMENT "generate test1 docbook chapter")
ADD_DEPENDENCIES(doc test1)
The archive is available at
http://www.cmake.org/Bug/bug.php?op=show&bugid=4414
In which project should I have a look to get an example ?
Thanks,
Frederic Heem
PS: cmake 2.4.6
On Tuesday 06 February 2007 2:50 pm, David Cole wrote:
> On 2/6/07, frederic heem <[EMAIL PROTECTED]> wrote:
> > > ADD_CUSTOM_TARGET(testFoo ...)
> > > ADD_CUSTOM_TARGET(doc-test ...)
> > > ADD_DEPENDENCIES(doc-test testFoo)
> >
> > thanks for the tips, but unfortunately, that's not working as
expected,
> > running "make doc-test" results in
> > testFoo1
> > doc-test
> > testFoo2
> > doc-test
> > testFoo3
> > doc-test
> > etc ...
> >
> > The target doc-test shall run only once at the end when all target
> > testFoon
> > are executed.
>
> 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?
>
> Thx,
> David
______________________________________________________________________________
--- NOTICE ---
CONFIDENTIALITY - This email and any attachments are confidential and
are
intended for the addressee only. If you have received this
message by
mistake, please contact us immediately and then delete the message from
your
system. You must not copy, distribute, disclose or act upon the
contents of
this email. Thank you.
PERSONAL DATA PROTECTION (Law by Decree 30.06.2003 n. 196) - Personal
and
corporate data submitted will be used in a correct, transparent and
lawful
manner. The data collected will be processed in paper or computerized form
for
the performance of contractual and lawful obligations as well as for
the
effective management of business relationship. Data may be disclosed, in
Italy
or abroad, for the purpose above mentioned to
third parties which cooperate
with Telsey, agents, banks, factoring companies, credit recovering
companies,
credit insurance companies, professional and consultants, and
shipping
companies. In relation to the same purposes,
data may be processed by the
following classes of executors or processors: management;
administration
department; logistics and purchase department; sales department; post
sales
department quality department; R&D department; IT department; legal
department.
The data processor is Telsey S.p.A. The data subject may exercise all
the
rights set forth in art. 7 of Law by Decree 30.06.2003 n. 196 as
reported in
in the following link http://www.telsey.it/privacy.jsp.
______________________________________________________________________________
798t8RfNa6Dl8Ilf
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake