meson: Don't use unneeded features in subprojects
Change-Id: Ie56a77b4899a8bbccf7b31a005dcd513bfedbf80
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meson.build b/meson.build
index f23dec5..d12cced 100644
--- a/meson.build
+++ b/meson.build
@@ -3,7 +3,9 @@
default_options: [
'warning_level=3',
'werror=true',
- 'cpp_std=c++17'
+ 'cpp_std=c++17',
+ 'tests=' + (meson.is_subproject() ? 'disabled' : 'auto'),
+ 'examples=' + (meson.is_subproject() ? 'false' : 'true'),
])
subdir('src')