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 /src/script/api | |
parent | b7851e51adf0fb0d39ed34a579cf6fe68d8949be (diff) | |
download | openttd-d1fa6b129c94b7c4ae6e45184a25962d49d074b8.tar.xz |
Add: [CMake] Option to only build tools/docs
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/script/api/CMakeLists.txt b/src/script/api/CMakeLists.txt index 9bc4183f1..c21707d43 100644 --- a/src/script/api/CMakeLists.txt +++ b/src/script/api/CMakeLists.txt @@ -131,6 +131,10 @@ foreach(API "ai;AI" "game;GS" "template;Template") ) endforeach() +if(OPTION_TOOLS_ONLY) + return() +endif() + add_library(openttd::script_api ALIAS script_api) |