From 54d78170876e7b762aa3452faa44ec1b7cd44372 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 2 Jan 2018 22:25:24 +0200 Subject: User options can "yield to" a user option of the same name in superproject. Closes ##2853. --- docs/markdown/snippets/yield.md | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/markdown/snippets/yield.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/yield.md b/docs/markdown/snippets/yield.md new file mode 100644 index 0000000..3880e67 --- /dev/null +++ b/docs/markdown/snippets/yield.md @@ -0,0 +1,8 @@ +## Yielding subproject option to superproject + +Normally project options are specific to the current project. However +sometimes you want to have an option whose value is the same over all +projects. This can be achieved with the new `yield` keyword for +options. When set to `true`, getting the value of this option in +`meson.build` files gets the value from the option with the same name +in the master project (if such an option exists). -- cgit v1.1