Skip to content

Commit

Permalink
improve docs cmake target name
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed Jan 1, 2024
1 parent e82643a commit b7ca1d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: sudo apt install graphviz
- run: |
cmake . -DJWT_BUILD_DOCS=ON
cmake --build . --target build_docs
cmake --build . --target jwt-docs
- if: github.event_name == 'push'
name: deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
4 changes: 2 additions & 2 deletions docs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ else()
message(STATUS "doxygen version detected : ${DOXYGEN_VERSION_OUTPUT}")
endif()

add_custom_target(build_docs COMMAND doxygen ${CMAKE_CURRENT_LIST_DIR}/Doxyfile WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
add_custom_target(jwt-docs COMMAND doxygen ${CMAKE_CURRENT_LIST_DIR}/Doxyfile WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
SOURCES ${CMAKE_CURRENT_LIST_DIR}/Doxyfile BYPRODUCTS ${CMAKE_BINARY_DIR}/html/index.html)
add_custom_command(
TARGET build_docs POST_BUILD COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan
TARGET jwt-docs POST_BUILD COMMAND ${CMAKE_COMMAND} -E cmake_echo_color --cyan
"You can prview the documentation: ${CMAKE_BINARY_DIR}/html/index.html")

0 comments on commit b7ca1d4

Please sign in to comment.