Skip to content

Commit b7ca1d4

Browse files
improve docs cmake target name
1 parent e82643a commit b7ca1d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- run: sudo apt install graphviz
1616
- run: |
1717
cmake . -DJWT_BUILD_DOCS=ON
18-
cmake --build . --target build_docs
18+
cmake --build . --target jwt-docs
1919
- if: github.event_name == 'push'
2020
name: deploy
2121
uses: peaceiris/actions-gh-pages@v3

docs/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ else()
1616
message(STATUS "doxygen version detected : ${DOXYGEN_VERSION_OUTPUT}")
1717
endif()
1818

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

0 commit comments

Comments
 (0)