From 61348da069bd3afe28a9de03e7792e20a9cb2eac Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 10 Apr 2018 15:01:05 -0400 Subject: Add 'disabler' argument to functions returning not-found objects When dependency(), find_library(), find_program(), or python.find_installation() return a not-found object and disabler is true, they return a Disabler object instead. --- docs/markdown/snippets/disabler.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 docs/markdown/snippets/disabler.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/disabler.md b/docs/markdown/snippets/disabler.md new file mode 100644 index 0000000..76874f6 --- /dev/null +++ b/docs/markdown/snippets/disabler.md @@ -0,0 +1,6 @@ +## Return `Disabler()` instead of not-found object + +Functions such as `dependency()`, `find_library()`, `find_program()`, and +`python.find_installation()` have a new keyword argument: `disabler`. When set +to `true` those functions return `Disabler()` objects instead of not-found +objects. -- cgit v1.1