File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,7 @@ option( SPHINX_EPUB_OUTPUT "Build HTML pages with additional information for bui
6464option ( SPHINX_LATEX_OUTPUT "Build LaTeX sources that can be compiled to a PDF document using pdflatex." OFF )
6565option ( SPHINX_MAN_OUTPUT "Build manual pages in groff format for UNIX systems." OFF )
6666option ( SPHINX_TEXT_OUTPUT "Build plain text files." OFF )
67+ option ( SPHINX_LINKCHECK "Create a target that will check HTTP links." OFF )
6768
6869
6970mark_as_advanced (
@@ -77,6 +78,7 @@ mark_as_advanced(
7778 SPHINX_LATEX_OUTPUT
7879 SPHINX_MAN_OUTPUT
7980 SPHINX_TEXT_OUTPUT
81+ SPHINX_LINKCHECK
8082)
8183
8284function ( Sphinx_add_target target_name builder conf source destination )
@@ -152,7 +154,7 @@ function( Sphinx_add_targets target_base_name conf source base_destination )
152154 add_dependencies ( ${target_base_name} _text ${_dependencies} )
153155 endif ()
154156
155- if ( ${BUILD_TESTING } )
157+ if ( ${SPHINX_LINKCHECK } )
156158 sphinx_add_target ( ${target_base_name} _linkcheck linkcheck ${conf} ${source} ${base_destination} /linkcheck )
157159
158160 add_dependencies ( ${target_base_name} _linkcheck ${_dependencies} )
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ if(BUILD_DOCUMENTATION)
9494 "-DSPHINX_MAN_OUTPUT:BOOL=${SPHINX_MAN_OUTPUT} "
9595 "-DSPHINX_QTHELP_OUTPUT:BOOL=${SPHINX_QTHELP_OUTPUT} "
9696 "-DSPHINX_TEXT_OUTPUT:BOOL=${SPHINX_TEXT_OUTPUT} "
97+ "-DSPHINX_LINKCHECK:BOOL=${SPHINX_LINKCHECK} "
9798 )
9899endif ()
99100
You can’t perform that action at this time.
0 commit comments