diff options
| author | David Kalnischkies <david@kalnischkies.de> | 2024-11-19 21:58:13 +0000 |
|---|---|---|
| committer | David Kalnischkies <david@kalnischkies.de> | 2024-11-22 12:11:13 +0000 |
| commit | 7578b7031921231400be78fa8c2893bbd5ea18df (patch) | |
| tree | 9b58c936265a36cad021bc716d2c61a88eed577f /CMake | |
| parent | 0fb71e375363f2b45b033bb2b324e80214325c61 (diff) | |
Avoid unnormalized paths for CMake install destinations
CMake 3.31 is very noisy about our manpage (and to a lesser extend
documentation in general) building as we used "//" and "/../" there.
`cmake --help-policy CMP0177` documents the warning, so we could just
decide on a value and deal with it, but given our usage is not really
needed and rather trivial to change lets not pick a value and instead
use a normalized path so we don't use different code paths in CMake
depending on which CMake version we happen to be build with.
Diffstat (limited to 'CMake')
| -rw-r--r-- | CMake/Documentation.cmake | 4 |
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) |
