Skip to content

Commit

Permalink
Merge pull request #347 from jphickey/fix-344-doc-dependency
Browse files Browse the repository at this point in the history
Fix #344, add doc-prebuild dependency
  • Loading branch information
dzbaker authored Dec 1, 2022
2 parents 7a10454 + e0a3da8 commit b9a8898
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 b9a8898

Please sign in to comment.