mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
cmake: sphinx-manpages requires fish_indent for version number
Fixes issue #6216. Problem introduced in 3b8505bebeebd79c9cd3a3aa39a7404725db985a.
This commit is contained in:
parent
102ddd2b79
commit
8e0aa03c4a
@ -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…
x
Reference in New Issue
Block a user