[doc] CMake: force order of Doxygen targets
Make sure the doxygen garbage is cleaned after being generated.
This commit is contained in:
parent
cc121f382e
commit
c3896662fd
|
@ -153,5 +153,9 @@ add_custom_target(clean_doxygen_garbage
|
||||||
# Set up the target
|
# Set up the target
|
||||||
add_custom_target(doc_doxygen true DEPENDS ${DOXYGEN_MANPAGES})
|
add_custom_target(doc_doxygen true DEPENDS ${DOXYGEN_MANPAGES})
|
||||||
|
|
||||||
# Add the target to the "doc" meta-target
|
# Add the target to the "doc" meta-target. The fact that "doc" depends
|
||||||
add_dependencies(doc doc_doxygen clean_doxygen_garbage)
|
# 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)
|
||||||
|
|
Loading…
Reference in New Issue