[doc] CMake: force order of Doxygen targets

Make sure the doxygen garbage is cleaned after being generated.
This commit is contained in:
Matteo Cypriani 2013-09-11 11:41:19 -04:00
parent cc121f382e
commit c3896662fd
1 changed files with 6 additions and 2 deletions

View File

@ -153,5 +153,9 @@ add_custom_target(clean_doxygen_garbage
# Set up the target
add_custom_target(doc_doxygen true DEPENDS ${DOXYGEN_MANPAGES})
# Add the target to the "doc" meta-target
add_dependencies(doc doc_doxygen clean_doxygen_garbage)
# Add the target to the "doc" meta-target. The fact that "doc" depends
# only on "clean_doxygen_garbage" and that the latter depends on
# "doc_doxygen" guaranties that the garbage are actually cleaned *after*
# they are generated.
add_dependencies(clean_doxygen_garbage doc_doxygen)
add_dependencies(doc clean_doxygen_garbage)