summaryrefslogtreecommitdiff
path: root/Utilities/Sphinx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-08 09:37:24 -0500
committerBrad King <brad.king@kitware.com>2016-02-08 09:38:18 -0500
commit8282547e0f9d7370e6f84f97a448b9842009c8c8 (patch)
treec31da9106d3688b6ca7b8e2902eb13f4c8cf7db2 /Utilities/Sphinx
parenta5a5a6857241c21d306661d723b749839f4c6e1a (diff)
downloadcmake-8282547e0f9d7370e6f84f97a448b9842009c8c8.tar.gz
Install ccmake.1 and cmake-gui.1 conditionally with their tools (#15957)
Diffstat (limited to 'Utilities/Sphinx')
-rw-r--r--Utilities/Sphinx/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Utilities/Sphinx/CMakeLists.txt b/Utilities/Sphinx/CMakeLists.txt
index 1baca35e4e..257ba620a0 100644
--- a/Utilities/Sphinx/CMakeLists.txt
+++ b/Utilities/Sphinx/CMakeLists.txt
@@ -156,6 +156,14 @@ if(SPHINX_MAN)
if("x${m}" MATCHES "^x(.+)\\.([1-9])\\.rst$")
set(name "${CMAKE_MATCH_1}")
set(sec "${CMAKE_MATCH_2}")
+ if(NOT CMakeHelp_STANDALONE)
+ if(name STREQUAL "ccmake" AND NOT BUILD_CursesDialog)
+ continue()
+ endif()
+ if(name STREQUAL "cmake-gui" AND NOT BUILD_QtDialog)
+ continue()
+ endif()
+ endif()
CMake_OPTIONAL_COMPONENT(sphinx-man)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec}
DESTINATION ${CMAKE_MAN_DIR}/man${sec}