From 266eb23207faa66e5ab6f2a6717716e93e52ab59 Mon Sep 17 00:00:00 2001 From: brutzzl3r Date: Fri, 12 Aug 2022 19:26:50 +0200 Subject: [PATCH] man-page: Fix install dir `avrdude.1` is installed into `man` dir instead of its proper section location. This is due to the definition of `TYPE MAN` which points to `/man` according to cmake docs. Use `DESTINATION` and add proper section subdir. This allows for `man -M /share/man -w 1 avrdude` to succeed instead of throwing `No manual entry for avrdude in section 1` Signed-off-by: brutzzl3r --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f3eedcd8..804468c1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -273,4 +273,6 @@ install(TARGETS libavrdude PUBLIC_HEADER DESTINATION include COMPONENT dev ) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/avrdude.conf" TYPE SYSCONF) -install(FILES avrdude.1 TYPE MAN) +install(FILES "avrdude.1" + DESTINATION "${CMAKE_INSTALL_MANDIR}/man1" + )