Utilities/Sphinx: Remove use of continue() method

We currently only require CMake 2.8.4 which does not provide it.
This commit is contained in:
Konstantin Podsvirov 2016-08-01 23:16:55 +03:00 committed by Brad King
parent 8b9cd61337
commit 7d7446c905
1 changed files with 11 additions and 8 deletions

View File

@ -156,18 +156,21 @@ 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}")
set(skip FALSE)
if(NOT CMakeHelp_STANDALONE) if(NOT CMakeHelp_STANDALONE)
if(name STREQUAL "ccmake" AND NOT BUILD_CursesDialog) if(name STREQUAL "ccmake" AND NOT BUILD_CursesDialog)
continue() set(skip TRUE)
endif() elseif(name STREQUAL "cmake-gui" AND NOT BUILD_QtDialog)
if(name STREQUAL "cmake-gui" AND NOT BUILD_QtDialog) set(skip TRUE)
continue()
endif() endif()
endif() endif()
CMake_OPTIONAL_COMPONENT(sphinx-man) if(NOT skip)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec} CMake_OPTIONAL_COMPONENT(sphinx-man)
DESTINATION ${CMAKE_MAN_DIR}/man${sec} install(FILES ${CMAKE_CURRENT_BINARY_DIR}/man/${name}.${sec}
${COMPONENT}) DESTINATION ${CMAKE_MAN_DIR}/man${sec}
${COMPONENT})
endif()
unset(skip)
endif() endif()
endforeach() endforeach()
endif() endif()