Skip to content

Commit

Permalink
[cmake/doxygen] avoids to build the documentation every time.
Browse files Browse the repository at this point in the history
  • Loading branch information
silvioprog committed Feb 12, 2018
1 parent 02993ae commit e2e9a84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/BkDoxygen.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ if (BK_BUILD_HTML)
endif ()
configure_file(${DOXYGEN_INPUT_FILE} ${DOXYGEN_OUTPUT_FILE} @ONLY)
message(STATUS "Generating Doxygen file - done")
add_custom_target(doc ALL
add_custom_target(doc
COMMAND ${CMAKE_COMMAND} -E make_directory ${DOXYGEN_DOC_DIR}
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUTPUT_FILE}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMENT "Generating API reference with Doxygen [HTML]"
VERBATIM)
if (BK_GENERATE_PDF)
set(DOXYGEN_LATEX_DIR ${DOXYGEN_DOC_DIR}/latex)
add_custom_target(pdf ALL
add_custom_target(pdf
COMMAND ${CMAKE_MAKE_PROGRAM} -C ${DOXYGEN_LATEX_DIR}
COMMAND ${CMAKE_COMMAND} -E rename ${DOXYGEN_LATEX_DIR}/refman.pdf ${DOXYGEN_LATEX_DIR}/libbrook-v${VERSION}.pdf
WORKING_DIRECTORY ${DOXYGEN_LATEX_DIR}
Expand Down

0 comments on commit e2e9a84

Please sign in to comment.