File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed 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
64
64
option ( SPHINX_LATEX_OUTPUT "Build LaTeX sources that can be compiled to a PDF document using pdflatex." OFF )
65
65
option ( SPHINX_MAN_OUTPUT "Build manual pages in groff format for UNIX systems." OFF )
66
66
option ( SPHINX_TEXT_OUTPUT "Build plain text files." OFF )
67
+ option ( SPHINX_LINKCHECK "Create a target that will check HTTP links." OFF )
67
68
68
69
69
70
mark_as_advanced (
@@ -77,6 +78,7 @@ mark_as_advanced(
77
78
SPHINX_LATEX_OUTPUT
78
79
SPHINX_MAN_OUTPUT
79
80
SPHINX_TEXT_OUTPUT
81
+ SPHINX_LINKCHECK
80
82
)
81
83
82
84
function ( Sphinx_add_target target_name builder conf source destination )
@@ -152,7 +154,7 @@ function( Sphinx_add_targets target_base_name conf source base_destination )
152
154
add_dependencies ( ${target_base_name} _text ${_dependencies} )
153
155
endif ()
154
156
155
- if ( ${BUILD_TESTING } )
157
+ if ( ${SPHINX_LINKCHECK } )
156
158
sphinx_add_target ( ${target_base_name} _linkcheck linkcheck ${conf} ${source} ${base_destination} /linkcheck )
157
159
158
160
add_dependencies ( ${target_base_name} _linkcheck ${_dependencies} )
Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ if(BUILD_DOCUMENTATION)
94
94
"-DSPHINX_MAN_OUTPUT:BOOL=${SPHINX_MAN_OUTPUT} "
95
95
"-DSPHINX_QTHELP_OUTPUT:BOOL=${SPHINX_QTHELP_OUTPUT} "
96
96
"-DSPHINX_TEXT_OUTPUT:BOOL=${SPHINX_TEXT_OUTPUT} "
97
+ "-DSPHINX_LINKCHECK:BOOL=${SPHINX_LINKCHECK} "
97
98
)
98
99
endif ()
99
100
You can’t perform that action at this time.
0 commit comments