summaryrefslogtreecommitdiff
path: root/docs/yaml/objects
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-03-06 18:57:40 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-03-06 19:41:21 -0500
commit0f2f87a003477bd79487a47d5f60f67751e2f44e (patch)
tree6ab93b568a66d25cffa9a6ae51e3b505d75a7001 /docs/yaml/objects
parent8b573d7dc65bf20fcb0377ce4c56841496ad0c69 (diff)
downloadmeson-0f2f87a003477bd79487a47d5f60f67751e2f44e.tar.gz
find_program: add a version() method to match the one for dependencies
It is often useful to check the found version of a program without checking whether you can successfully find `find_program('foo', required: false, version: '>=XXX')`
Diffstat (limited to 'docs/yaml/objects')
-rw-r--r--docs/yaml/objects/external_program.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/yaml/objects/external_program.yaml b/docs/yaml/objects/external_program.yaml
index 02bf48f6b..f4064771d 100644
--- a/docs/yaml/objects/external_program.yaml
+++ b/docs/yaml/objects/external_program.yaml
@@ -24,6 +24,14 @@ methods:
run_command(find_program('foo'), 'arg1', 'arg2')
```
+- name: version
+ returns: str
+ since: 0.62.0
+ description: |
+ The version number as a string, for example `1.2.8`.
+
+ `unknown` if the program cannot determine the version via a `--version` argument.
+
- name: full_path
returns: str
since: 0.55.0