From e0a3da8ab06f46b7fdf5c83464971aca8fc0f1f3 Mon Sep 17 00:00:00 2001 From: Joseph Hickey Date: Wed, 23 Nov 2022 16:50:19 -0500 Subject: [PATCH] Fix #344, add doc-prebuild dependency The documentation requires some artifacts to be in place, this added dependency ensures they are created before doxygen runs. --- docs/dox_src/CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/dox_src/CMakeLists.txt b/docs/dox_src/CMakeLists.txt index 60fa6ebe..d3829d53 100644 --- a/docs/dox_src/CMakeLists.txt +++ b/docs/dox_src/CMakeLists.txt @@ -26,12 +26,16 @@ configure_file( @ONLY ) -add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/html/index.html" "${CMAKE_CURRENT_BINARY_DIR}/ALWAYSBUILD" +add_custom_target(cf-usersguide-html COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/cf-usersguide.doxyfile WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" ) +# This requires some of the intermediate files from the CFE doc build to be +# in place prior to running doxygen for CF +add_dependencies(cf-usersguide-html doc-prebuild) + add_custom_target(cf-usersguide COMMAND echo "CF UsersGuide: file://${CMAKE_CURRENT_BINARY_DIR}/html/index.html" - DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/ALWAYSBUILD" + DEPENDS cf-usersguide-html )