summaryrefslogtreecommitdiff
path: root/src/options/CMakeLists.txt
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-05-19 07:55:53 +0200
committerGitHub <noreply@github.com>2021-05-19 05:55:53 +0000
commit6dc5b7469cee015a3bcf25a1543123da6c8317fe (patch)
tree780a12ceb8a7c6ba063277e0297ae080e51cf306 /src/options/CMakeLists.txt
parent4e6e168a5eb578df2bfd12becf7732cbdd23bc3a (diff)
Generate command line options for sphinx docs (#6555)
This PR adds documentation about the command line options to the sphinx documentation. It is mostly a reformatted version of what --help would print.
Diffstat (limited to 'src/options/CMakeLists.txt')
-rw-r--r--src/options/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options/CMakeLists.txt b/src/options/CMakeLists.txt
index 078c2ad31..997c6850a 100644
--- a/src/options/CMakeLists.txt
+++ b/src/options/CMakeLists.txt
@@ -74,10 +74,12 @@ add_custom_command(
OUTPUT
options.h options.cpp
${options_gen_cpp_files} ${options_gen_h_files}
+ ${CMAKE_BINARY_DIR}/docs/options_generated.rst
COMMAND
${PYTHON_EXECUTABLE}
${CMAKE_CURRENT_LIST_DIR}/mkoptions.py
${CMAKE_CURRENT_LIST_DIR}
+ ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${abs_toml_files}
DEPENDS
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback