Skip to content

Commit

Permalink
exclude doc from ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
nim65s committed Jul 27, 2024
1 parent 255f11e commit b64d073
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions doxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -518,18 +518,22 @@ macro(_SETUP_PROJECT_DOCUMENTATION)
endif(DOXYGEN_DOT_FOUND)

# Teach CMake how to generate the documentation.
if(NOT TARGET doc)
add_custom_target(doc ALL COMMENT "Generating Doxygen documentation")
endif()
if(MSVC)
# FIXME: it is impossible to trigger documentation installation at
# install, so put the target in ALL instead.
if(NOT TARGET doc)
add_custom_target(doc ALL COMMENT "Generating Doxygen documentation")
endif()
add_custom_target(
${PROJECT_NAME}-doc ALL
${PROJECT_NAME}-doc
COMMAND ${DOXYGEN_EXECUTABLE} ${JRL_CMAKEMODULE_DOXYFILE_PATH}
WORKING_DIRECTORY doc
COMMENT "Generating Doxygen documentation")
else(MSVC)
if(NOT TARGET doc)
add_custom_target(doc COMMENT "Generating Doxygen documentation")
endif()

add_custom_target(
${PROJECT_NAME}-doc
COMMAND ${DOXYGEN_EXECUTABLE} ${JRL_CMAKEMODULE_DOXYFILE_PATH}
Expand Down

0 comments on commit b64d073

Please sign in to comment.