[CMake] ADD_DEPENDENCIES Adding dependency to non-existent target:
doc-test
frederic heem
frederic.heem at telsey.it
Mon Feb 5 09:58:39 EST 2007
Hi,
It seems that ADD_DEPENDENCIES does not allow to add a dependency to every
target. Here is a brief description of the problem:
A subdirectory contains a custom target to generate html from a docbook:
ADD_CUSTOM_TARGET(doc-test
COMMAND xmlto html
${CMAKE_CURRENT_SOURCE_DIR}/doc/CallDocBook.xml
COMMENT "generate the html documentation")
Each sub-subdirectory has to generate a chapter of the docbook:
ADD_CUSTOM_TARGET(testFoo
COMMAND java -jar xalan.jar -in testFoo.xml -xsl
test.xsl -out testFooDocBook.xml)
ADD_DEPENDENCIES(doc-test testFoo)
Unfortunately, cmake complains about ADD_DEPENDENCIES(doc-test testFoo):
ADD_DEPENDENCIES Adding dependency to non-existent target: doc-test
If ADD_DEPENDENCIES is commented, make help shows the doc-test target.
Is there a way to overcome this problem ?
Thanks,
Frederic Heem
More information about the CMake
mailing list