From 1d526141acfdab045980a2c730c5ae91c64d3bee Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 5 Jun 2018 11:32:53 -0400 Subject: [PATCH] Only build man pages if CLI programs are being built. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3293b05674..165828b487 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -479,7 +479,7 @@ endif () # Make a target to generate the man page documentation, but only if we are on a # UNIX-like system. -if (UNIX) +if (BUILD_CLI_EXECUTABLES AND UNIX) find_program(TXT2MAN txt2man) # It's not a requirement that we make man pages.