cmake: Fix man page generation

Archlinux has used this patch for three years already to fix the man
page generation. Cherry-pick it to include the fix upstream too.

See also: https://bugs.archlinux.org/task/64814

Co-authored-by: David Runge <dvzrv@archlinux.org>
This commit is contained in:
Pascal Nowack 2023-12-14 16:48:10 +01:00 committed by akallabeth
parent 000f32d48a
commit 966ad9777e
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ if (NOT DOCBOOKXSL_DIR)
set (STYLESHEET_PATH_LIST)
foreach (STYLESHEET_PREFIX_ITER ${CMAKE_SYSTEM_PREFIX_PATH})
file(GLOB STYLESHEET_SUFFIX_ITER RELATIVE ${STYLESHEET_PREFIX_ITER}
${STYLESHEET_PREFIX_ITER}/share/xml/docbook/xsl-stylesheets-*
${STYLESHEET_PREFIX_ITER}/share/xml/docbook/xsl-stylesheets-*-nons
)
if (STYLESHEET_SUFFIX_ITER)
list (APPEND STYLESHEET_PATH_LIST ${STYLESHEET_SUFFIX_ITER})