diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/snippets/find_program_default_options.md | 4 | ||||
-rw-r--r-- | docs/yaml/functions/find_program.yaml | 10 |
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) |