From faddef07f3e7a58a1a3120676084b75c6cee07bb Mon Sep 17 00:00:00 2001 From: Kamil Dudka Date: Tue, 31 Aug 2021 16:27:52 +0200 Subject: [PATCH] doc: install csexec(1) man page only if csexec is installed --- doc/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 25c571f..8eabd04 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -30,7 +30,9 @@ endmacro() # build and install man pages (if asciidoc is available) find_program(A2X a2x) if(A2X) - add_man_page(csexec) + if(TARGET csexec) + add_man_page(csexec) + endif() add_man_page(cswrap) add_custom_target(doc ALL DEPENDS ${man_pages}) endif()