mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
cmake: sphinx-manpages requires fish_indent for version number
Fixes issue #6216.
Problem introduced in 3b8505bebe
.
This commit is contained in:
parent
102ddd2b79
commit
8e0aa03c4a
1 changed files with 4 additions and 1 deletions
|
@ -26,14 +26,17 @@ ADD_CUSTOM_TARGET(sphinx-docs
|
|||
DEPENDS sphinx_doc_src/fish_indent_lexer.py fish_indent
|
||||
COMMENT "Building HTML documentation with Sphinx")
|
||||
|
||||
# sphinx-manpages needs the fish_indent binary for the version number
|
||||
ADD_CUSTOM_TARGET(sphinx-manpages
|
||||
${SPHINX_EXECUTABLE}
|
||||
env PATH="$<TARGET_FILE_DIR:fish_indent>:$$PATH"
|
||||
${SPHINX_EXECUTABLE}
|
||||
-q -b man
|
||||
-c "${SPHINX_SRC_DIR}"
|
||||
-d "${SPHINX_CACHE_DIR}"
|
||||
"${SPHINX_SRC_DIR}"
|
||||
# TODO: This only works if we only have section 1 manpages.
|
||||
"${SPHINX_MANPAGE_DIR}/man1"
|
||||
DEPENDS fish_indent
|
||||
COMMENT "Building man pages with Sphinx")
|
||||
|
||||
IF(SPHINX_EXECUTABLE)
|
||||
|
|
Loading…
Reference in a new issue