aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-09-17 20:27:32 +0100
committerSergei Trofimovich <slyich@gmail.com>2023-09-21 16:39:53 +0100
commitcff58032160406c170a3dc319ad6e7b288cafcc0 (patch)
treea87f25f913a66c4b9444bd01dd0760abdf4237db
parent3ad47114b8ea876848557d5bc809308e16e499a7 (diff)
downloadbrotli-cff58032160406c170a3dc319ad6e7b288cafcc0.zip
brotli-cff58032160406c170a3dc319ad6e7b288cafcc0.tar.gz
brotli-cff58032160406c170a3dc319ad6e7b288cafcc0.tar.bz2
CMakeLists.txt: use `CMAKE_INSTALL_FULL_MANDIR` for mans install
Without the change install just fails for me as `SHARE_INSTALL_PREFIX` is unset for me. Following https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html I'm using absolute path expansion to install mans.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f13b62c..ffb640c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -359,9 +359,9 @@ if(NOT BROTLI_BUNDLED_MODE)
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
endif() # BROTLI_BUNDLED_MODE
-INSTALL(FILES "docs/brotli.1" DESTINATION "${SHARE_INSTALL_PREFIX}/man/man1")
+INSTALL(FILES "docs/brotli.1" DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man1")
INSTALL(FILES docs/constants.h.3 docs/decode.h.3 docs/encode.h.3 docs/types.h.3
- DESTINATION "${SHARE_INSTALL_PREFIX}/man/man3")
+ DESTINATION "${CMAKE_INSTALL_FULL_MANDIR}/man3")
if (ENABLE_COVERAGE STREQUAL "yes")
SETUP_TARGET_FOR_COVERAGE(coverage test coverage)