Convert warnings to errors in Sphinx documentation builds

This commit is contained in:
A.J. Beamon 2019-06-14 09:45:18 -07:00
parent 58e6f0d753
commit 9619013abc
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ function(add_documentation_target)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${target}_done
COMMAND ${CMAKE_COMMAND} -E make_directory ${out_dir} &&
${python_command} ${SPHINX_COMMAND} -b ${target}
${python_command} ${SPHINX_COMMAND} -W -b ${target}
-d ${doctree} -c ${sphinx_dir}
${sphinx_dir}/source
${CMAKE_CURRENT_BINARY_DIR}/${target} &&

View File

@ -87,7 +87,7 @@ cleanvirtualenv:
rm -rf $(VENVDIR)
html: buildsphinx cleanhtml
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
$(SPHINXBUILD) -W -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."