From 3163cf2d709e7b021867aec2e811331991ad097a Mon Sep 17 00:00:00 2001 From: Ian Johnson Date: Tue, 19 Apr 2016 14:06:01 -0500 Subject: [PATCH] Only include man subdirectory if the DOCUMENTATION option is on Signed-off-by: Ian Johnson --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f075ab5d..2742f104 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,8 @@ endif (${WITH_SOCKS} STREQUAL ON) option(WITH_SRV "Include SRV lookup support?" OFF) +option(DOCUMENTATION "Build documentation?" ON) + # ======================================== # Include projects # ======================================== @@ -86,7 +88,9 @@ option(WITH_SRV "Include SRV lookup support?" OFF) add_subdirectory(lib) add_subdirectory(client) add_subdirectory(src) -add_subdirectory(man) +if (${DOCUMENTATION} STREQUAL ON) + add_subdirectory(man) +endif (${DOCUMENTATION} STREQUAL ON) # ======================================== # Install config file