Mercurial > libjeffpc
changeset 854:322f83565c8c
man: fix lint test manpage paths
When building out-of-tree, the lint invocation would fail because it would
be looking for the manpages in the binary directory.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Tue, 04 Oct 2022 20:53:18 -0400 |
parents | 8f5e2843b264 |
children | 49c810f9f92d |
files | man/CMakeLists.txt |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/man/CMakeLists.txt Wed Jan 05 23:26:54 2022 -0500 +++ b/man/CMakeLists.txt Tue Oct 04 20:53:18 2022 -0400 @@ -1,5 +1,5 @@ # -# Copyright (c) 2020 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> +# Copyright (c) 2020,2022 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -30,7 +30,7 @@ # run lint on all manpages foreach(man ${MANPAGES}) add_test(NAME "man-lint:${man}" - COMMAND mandoc -Tlint ${man}) + COMMAND mandoc -Tlint ${CMAKE_CURRENT_SOURCE_DIR}/${man}) endforeach() # install all manpages