aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-15 09:45:53 +0200
committerXavier Claessens <xclaesse@gmail.com>2021-04-15 08:19:57 -0400
commitc1a8f00d789550c2d4b5c62f8f1801e2328532b3 (patch)
tree5453f3736f0b920efd93e53863db0833e80ed019
parente7ceab751047c3c4a8e5b3fb714cd8203ae460dc (diff)
downloadmeson-c1a8f00d789550c2d4b5c62f8f1801e2328532b3.zip
meson-c1a8f00d789550c2d4b5c62f8f1801e2328532b3.tar.gz
meson-c1a8f00d789550c2d4b5c62f8f1801e2328532b3.tar.bz2
docs: document default version for declare_dependency()
By default, the project version is picked.
-rw-r--r--docs/markdown/Reference-manual.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 916083c..fbef6a9 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -443,7 +443,8 @@ keyword arguments:
- `link_whole` *(since 0.46.0)*: libraries to link fully, same as [`executable`](#executable).
- `sources`: sources to add to targets (or generated header files
that should be built before sources including them are built)
-- `version`: the version of this dependency, such as `1.2.3`
+- `version`: the version of this dependency, such as `1.2.3`. Defaults to the
+ project version.
- `variables` *(since 0.54.0)*: a dictionary of arbitrary strings, this is meant to be used
in subprojects where special variables would be provided via cmake or
pkg-config. *since 0.56.0* it can also be a list of `'key=value'` strings.