Only include man subdirectory if the DOCUMENTATION option is on

Signed-off-by: Ian Johnson <ijohnson@wolfram.com>
This commit is contained in:
Ian Johnson 2016-04-19 14:06:01 -05:00
parent 62402f7b60
commit 3163cf2d70

View File

@ -79,6 +79,8 @@ endif (${WITH_SOCKS} STREQUAL ON)
option(WITH_SRV "Include SRV lookup support?" OFF) option(WITH_SRV "Include SRV lookup support?" OFF)
option(DOCUMENTATION "Build documentation?" ON)
# ======================================== # ========================================
# Include projects # Include projects
# ======================================== # ========================================
@ -86,7 +88,9 @@ option(WITH_SRV "Include SRV lookup support?" OFF)
add_subdirectory(lib) add_subdirectory(lib)
add_subdirectory(client) add_subdirectory(client)
add_subdirectory(src) add_subdirectory(src)
add_subdirectory(man) if (${DOCUMENTATION} STREQUAL ON)
add_subdirectory(man)
endif (${DOCUMENTATION} STREQUAL ON)
# ======================================== # ========================================
# Install config file # Install config file