Skip to content

Commit

Permalink
doc: cmake: use specific directory for linkcheck output
Browse files Browse the repository at this point in the history
Before root build directory was used, causing issues as some parts of
the configuration rely on having a certain layout.

Signed-off-by: Gerard Marull-Paretas <[email protected]>
  • Loading branch information
gmarull committed Dec 11, 2024
1 parent 22442c1 commit ba73975
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function(add_docset name version)
set(DOCSET_SRC_DIR ${CMAKE_BINARY_DIR}/${name}/src)
set(DOCSET_DOCTREE_DIR ${CMAKE_BINARY_DIR}/${name}/doctree)
set(DOCSET_HTML_DIR ${CMAKE_BINARY_DIR}/html/${name})
set(DOCSET_LINKCHECK_DIR ${CMAKE_BINARY_DIR}/linkcheck/${name})
set(DOCSET_MAKE_DIRS ${DOCSET_BUILD_DIR};${DOCSET_SRC_DIR};${DOCSET_HTML_DIR})
set(DOCSET_CLEAN_DIRS ${DOCSET_BUILD_DIR};${DOCSET_HTML_DIR})
set(DOCSET_ENV DOXYGEN_EXECUTABLE=${DOXYGEN_EXECUTABLE};DOCSET_VERSION=${version};DOCS_HTML_DIR=${DOCSET_HTML_DIR})
Expand Down Expand Up @@ -211,7 +212,7 @@ function(add_docset name version)
${SPHINXOPTS_EXTRA}
${EXTRA_ARGS}
${DOCSET_SRC_DIR}
${DOCSET_BUILD_DIR}
${DOCSET_LINKCHECK_DIR}
USES_TERMINAL
COMMENT "Checking links for ${name} docset..."
)
Expand Down

0 comments on commit ba73975

Please sign in to comment.