summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-02-08 15:35:51 (GMT)
committerBrad King <brad.king@kitware.com>2016-02-08 15:35:51 (GMT)
commit98d6d8f9e21fe7cb4f993cdc4c06bf7d8b4f74d1 (patch)
tree67b53c60fcfd7295d7103c01a954620307b33693 /Utilities
parent024c4eac0502e4153c9eb44a2f5bcabf48c4d00d (diff)
parent8282547e0f9d7370e6f84f97a448b9842009c8c8 (diff)
downloadCMake-98d6d8f9e21fe7cb4f993cdc4c06bf7d8b4f74d1.zip
CMake-98d6d8f9e21fe7cb4f993cdc4c06bf7d8b4f74d1.tar.gz
CMake-98d6d8f9e21fe7cb4f993cdc4c06bf7d8b4f74d1.tar.bz2
Merge branch 'install-man-conditionally' into release
Diffstat (limited to 'Utilities')
-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 1baca35..257ba62 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}