Skip to content

Commit

Permalink
fix: use separate sphinx cache dir for each module
Browse files Browse the repository at this point in the history
Using the same cache dir for all modules results in sphinx getting
lost with source files having the same names.
  • Loading branch information
abdes committed Jan 28, 2022
1 parent 4ad38e4 commit 03f36fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ include(DoxGeneration)

# Sphinx/breathe/exhale
set(SPHINX_BUILD_DIR "${CMAKE_BINARY_DIR}/sphinx")
set(SPHINX_CACHE_DIR "${SPHINX_BUILD_DIR}/_doctrees")
set(SPHINX_HTML_DIR "${SPHINX_BUILD_DIR}/html")
include(SphinxGeneration)

# Setup sphinx doc master target and add other submodules as dependencies
Expand Down
2 changes: 1 addition & 1 deletion cmake/SphinxGeneration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if(SPHINX_FOUND)
${TARGET_NAME}_sphinx
COMMAND
${SPHINX_EXECUTABLE} -q -b html -c "${EXHALE_TARGET_WORKDIR}" -d
"${SPHINX_CACHE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/doc"
"${SPHINX_TARGET_WORKDIR}/_doctrees" "${CMAKE_CURRENT_SOURCE_DIR}/doc"
"${SPHINX_TARGET_WORKDIR}/html"
WORKING_DIRECTORY "${SPHINX_TARGET_WORKDIR}"
VERBATIM
Expand Down

0 comments on commit 03f36fc

Please sign in to comment.