From c1a8f00d789550c2d4b5c62f8f1801e2328532b3 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 15 Apr 2021 09:45:53 +0200 Subject: [PATCH] docs: document default version for declare_dependency() By default, the project version is picked. --- docs/markdown/Reference-manual.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 916083cfa..fbef6a995 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.