summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2024-11-22 14:07:42 +0000
committerJulian Andres Klode <jak@debian.org>2024-11-22 14:07:42 +0000
commitb3c8a3cbb0f51d9cf704ca6a1c050fb50a0fb22d (patch)
treebb6f4b311745f5334d95e0d36c7a2f85384f0ee2 /CMake
parentdcb81196776f5c31063e5f57104b4b021f37aa00 (diff)
parent8c760266c8c736bff62055c008ab74d78f3ed82a (diff)
Merge branch 'fix/warnings' into 'main'
Fix a small bunch of compile-time warnings See merge request apt-team/apt!404
Diffstat (limited to 'CMake')
-rw-r--r--CMake/Documentation.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMake/Documentation.cmake b/CMake/Documentation.cmake
index f3eb4c5e1..d7f136020 100644
--- a/CMake/Documentation.cmake
+++ b/CMake/Documentation.cmake
@@ -154,14 +154,16 @@ function(xsltproc_one)
if (DOC_MANPAGE)
if (language)
set(manpage_output "${CMAKE_CURRENT_BINARY_DIR}/${language}/${document}.${section}")
+ set(manpage_l10npath "/${language}")
else()
+ set(manpage_l10npath "")
set(manpage_output "${CMAKE_CURRENT_BINARY_DIR}/${document}.${section}")
endif()
set(manpage_stylesheet "${CMAKE_CURRENT_BINARY_DIR}/manpage-style.xsl")
set(manpage_params)
install(FILES ${manpage_output}
- DESTINATION ${CMAKE_INSTALL_MANDIR}/${language}/man${section}
+ DESTINATION ${CMAKE_INSTALL_MANDIR}${manpage_l10npath}/man${section}
OPTIONAL)
endif()
if (DOC_HTML)