aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Ejdestig <marejde@gmail.com>2018-02-15 16:57:41 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-02-16 00:08:28 +0200
commitb06a4901cb7f062e57dcd5b8193271031ca36c62 (patch)
tree607fdd1e61c07249393ad16551a31c9db64d24cf
parentd2445a15a1e3bc54af3737ff85ad6c37667c538e (diff)
downloadmeson-b06a4901cb7f062e57dcd5b8193271031ca36c62.zip
meson-b06a4901cb7f062e57dcd5b8193271031ca36c62.tar.gz
meson-b06a4901cb7f062e57dcd5b8193271031ca36c62.tar.bz2
Document how to set options in subprojects
-rw-r--r--docs/markdown/Build-options.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/Build-options.md b/docs/markdown/Build-options.md
index f70dda5..9ccdf83 100644
--- a/docs/markdown/Build-options.md
+++ b/docs/markdown/Build-options.md
@@ -107,6 +107,13 @@ $ meson configure "-Doption=['a,b', 'c,d']"
The inner values must always be single quotes and the outer ones
double quotes.
+To change values in subprojects prepend the name of the subproject and
+a colon:
+
+```console
+$ meson configure -Dsubproject:option=newvalue
+```
+
**NOTE:** If you cannot call `meson configure` you likely have a old
version of Meson. In that case you can call `mesonconf` instead, but
that is deprecated in newer versions