From b44fc8a89c8151870924aef3242f57ee7a14c20b Mon Sep 17 00:00:00 2001 From: Gerard Marull-Paretas Date: Tue, 16 Mar 2021 16:14:16 +0100 Subject: [PATCH] doc: enable automatic parallelization Sphinx supports parallelized build (-j) option. Setting it to `auto` makes use of all available cores. This option seems to speed up the build significantly on multi-core machines. Signed-off-by: Gerard Marull-Paretas --- doc/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index ca433184f1a..c98033eb7b8 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -59,7 +59,7 @@ if(${LATEXMK} STREQUAL LATEXMK-NOTFOUND) endif() if(NOT DEFINED SPHINXOPTS) - set(SPHINXOPTS -q) + set(SPHINXOPTS -q -j auto) else() separate_arguments(SPHINXOPTS) endif()