aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/per_subproject_builtin.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/markdown/snippets/per_subproject_builtin.md b/docs/markdown/snippets/per_subproject_builtin.md
index 44ed1c8..b0c3ce9 100644
--- a/docs/markdown/snippets/per_subproject_builtin.md
+++ b/docs/markdown/snippets/per_subproject_builtin.md
@@ -1,8 +1,9 @@
-## Per subproject `default_library` option
+## Per subproject `default_library` and `werror` options
-The `default_library` built-in option can now be defined per subproject. This is
-useful for example when building shared libraries in the main project, but static
-link a subproject.
+The `default_library` and `werror` built-in options can now be defined per subproject.
+This is useful for example when building shared libraries in the main project,
+but static link a subproject, or when the main project must build with no warnings
+but some subprojects cannot.
Most of the time this would be used either by the parent project by setting
subproject's default_options (e.g. `subproject('foo', default_options: 'default_library=static')`),