]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Run setting canonical pages as part of the doxygen generation process. 8085/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 10 May 2019 23:51:49 +0000 (17:51 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 10 May 2019 23:51:49 +0000 (17:51 -0600)
This has the advantage that we need not worry about when that POST_BUILD
command is run. In particular, there can not be any race conditions.
This is, however, only true for the doxygen generated pages, whereas the
script also touches the other .html files for which the target I put the
script under has no in- or out-dependencies.

doc/doxygen/CMakeLists.txt

index 285e05806fec44fd4c29c6cea7e65ffdd65a5de1..d03d06cb869f6f7187bc17d20bbd67f920fc4978 100644 (file)
@@ -284,6 +284,8 @@ ADD_CUSTOM_COMMAND(
     ${CMAKE_CURRENT_BINARY_DIR}/options.dox
     > ${CMAKE_BINARY_DIR}/doxygen.log 2>&1 # *pssst*
     || ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/doxygen.log ${CMAKE_BINARY_DIR}/doxygen.err
+  COMMAND
+    ${CMAKE_CURRENT_SOURCE_DIR}/scripts/set_canonical_doxygen.py
   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
   DEPENDS
     tutorial
@@ -303,10 +305,6 @@ ADD_CUSTOM_TARGET(doxygen ALL
   )
 ADD_DEPENDENCIES(documentation doxygen)
 
-# Set the canonical link for the doxygen webpages
-ADD_CUSTOM_COMMAND(TARGET doxygen POST_BUILD
-    COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/set_canonical_doxygen.py)
-
 INSTALL(FILES
   ${CMAKE_CURRENT_BINARY_DIR}/deal.tag
   DESTINATION ${DEAL_II_DOCHTML_RELDIR}/doxygen

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.