mirror of
https://github.com/triqs/dft_tools
synced 2025-01-09 12:44:03 +01:00
[cmake] Fix python environment for doc generation
This commit is contained in:
parent
de2792361e
commit
afe06474ff
@ -8,7 +8,7 @@ file(GLOB_RECURSE sources *.rst)
|
||||
|
||||
set(sphinx_top ${CMAKE_CURRENT_BINARY_DIR}/html/contents.html)
|
||||
add_custom_command(OUTPUT ${sphinx_top} DEPENDS ${sources}
|
||||
COMMAND ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_BINARY_DIR} html)
|
||||
COMMAND PYTHONPATH=${CMAKE_BINARY_DIR}/python:$ENV{PYTHONPATH} ${TRIQS_SPHINXBUILD_EXECUTABLE} -c . -j8 -b html ${CMAKE_CURRENT_BINARY_DIR} html)
|
||||
add_custom_target(docs_sphinx ALL DEPENDS ${sphinx_top} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
# Application must be compiled first
|
||||
|
Loading…
Reference in New Issue
Block a user