From 50baf3c626267252a2d943a49d8e7c0402e23218 Mon Sep 17 00:00:00 2001 From: Nomura Date: Wed, 2 Aug 2023 22:34:39 +0200 Subject: Add default_options argument to find_program() --- docs/markdown/snippets/find_program_default_options.md | 4 ++++ docs/yaml/functions/find_program.yaml | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 docs/markdown/snippets/find_program_default_options.md (limited to 'docs') 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 000000000..2cf9822d2 --- /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 537bbc59c..3153bd327 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) -- cgit v1.2.3