diff options
author | glx22 <glx@openttd.org> | 2020-12-13 00:24:55 +0100 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2020-12-13 22:46:46 +0100 |
commit | d1fa6b129c94b7c4ae6e45184a25962d49d074b8 (patch) | |
tree | 82d1204f72c997e16ee6385914e49c05a2e2e16a /cmake | |
parent | b7851e51adf0fb0d39ed34a579cf6fe68d8949be (diff) | |
download | openttd-d1fa6b129c94b7c4ae6e45184a25962d49d074b8.tar.xz |
Add: [CMake] Option to only build tools/docs
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Options.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/Options.cmake b/cmake/Options.cmake index 005bb19ca..977d54f06 100644 --- a/cmake/Options.cmake +++ b/cmake/Options.cmake @@ -57,6 +57,12 @@ function(set_options) option(OPTION_USE_ASSERTS "Use assertions; leave enabled for nightlies, betas, and RCs" ON) option(OPTION_USE_THREADS "Use threads" ON) option(OPTION_USE_NSIS "Use NSIS to create windows installer; enable only for stable releases" OFF) + option(OPTION_TOOLS_ONLY "Build only tools target" OFF) + option(OPTION_DOCS_ONLY "Build only docs target" OFF) + + if (OPTION_DOCS_ONLY) + set(OPTION_TOOLS_ONLY ON PARENT_SCOPE) + endif() endfunction() # Show the values of the generic options. |