Merge topic 'install-man-conditionally'
8282547e
Install ccmake.1 and cmake-gui.1 conditionally with their tools (#15957)
This commit is contained in:
commit
7b53e8c6a5
|
@ -156,6 +156,14 @@ if(SPHINX_MAN)
|
||||||
if("x${m}" MATCHES "^x(.+)\\.([1-9])\\.rst$")
|
if("x${m}" MATCHES "^x(.+)\\.([1-9])\\.rst$")
|
||||||
set(name "${CMAKE_MATCH_1}")
|
set(name "${CMAKE_MATCH_1}")
|
||||||
set(sec "${CMAKE_MATCH_2}")
|
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)
|
CMake_OPTIONAL_COMPONENT(sphinx-man)
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec}
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec}
|
||||||
DESTINATION ${CMAKE_MAN_DIR}/man${sec}
|
DESTINATION ${CMAKE_MAN_DIR}/man${sec}
|
||||||
|
|
Loading…
Reference in New Issue