Skip to content

Commit

Permalink
Fix nasa#344, add doc-prebuild dependency
Browse files Browse the repository at this point in the history
The documentation requires some artifacts to be in place, this added
dependency ensures they are created before doxygen runs.
  • Loading branch information
jphickey committed Nov 23, 2022
1 parent 281a941 commit e0a3da8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/dox_src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit e0a3da8

Please sign in to comment.