aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNomura <nomura.rh@gmail.com>2023-08-02 22:34:39 +0200
committerXavier Claessens <xclaesse@gmail.com>2023-08-04 14:46:39 -0400
commit50baf3c626267252a2d943a49d8e7c0402e23218 (patch)
tree3b50e104ec4cf1d484693e5ef903b6147ef8b3c2 /docs
parent183e4b8e903c6c4c057d09549e669d6292478a4e (diff)
downloadmeson-50baf3c626267252a2d943a49d8e7c0402e23218.zip
meson-50baf3c626267252a2d943a49d8e7c0402e23218.tar.gz
meson-50baf3c626267252a2d943a49d8e7c0402e23218.tar.bz2
Add default_options argument to find_program()
Diffstat (limited to 'docs')
-rw-r--r--docs/markdown/snippets/find_program_default_options.md4
-rw-r--r--docs/yaml/functions/find_program.yaml10
2 files changed, 14 insertions, 0 deletions
diff --git a/docs/markdown/snippets/find_program_default_options.md b/docs/markdown/snippets/find_program_default_options.md
new file mode 100644
index 0000000..2cf9822
--- /dev/null
+++ b/docs/markdown/snippets/find_program_default_options.md
@@ -0,0 +1,4 @@
+## find_program() now supports the 'default_options' argument
+
+In a similar fashion as dependency(), find_program() now also allows you to set default
+options for the subproject that gets built in case of a fallback.
diff --git a/docs/yaml/functions/find_program.yaml b/docs/yaml/functions/find_program.yaml
index 537bbc5..3153bd3 100644
--- a/docs/yaml/functions/find_program.yaml
+++ b/docs/yaml/functions/find_program.yaml
@@ -113,3 +113,13 @@ kwargs:
type: list[str]
since: 0.53.0
description: extra list of absolute paths where to look for program names.
+
+ default_options:
+ type: list[str] | dict[str | bool | int | list[str]]
+ since: 1.3.0
+ description: |
+ An array of default option values
+ that override those set in the subproject's `meson.options`
+ (like `default_options` in [[project]], they only have
+ effect when Meson is run for the first time, and command line
+ arguments override any default options in build files)