It's always been strange to me we don't have an opposite method of the `disable_auto_if` method, but I've been pressed to find a case where we _need_ one, because `disable_auto_if` can't be logically contorted to work. I finally found the case where they're not equivalent: when you don't want to convert to a boolean: ```meson f = get_option('feat').disable_auto_if(not foo) g = get_option('feat').enable_auto_if(foo) dep1 = dependency('foo', required : f) dep2 = dependency('foo', required : g) ```pull/10930/head
parent
a3098fbfa3
commit
3589815eb9
4 changed files with 39 additions and 1 deletions
@ -0,0 +1,4 @@ |
||||
## Feature objects now have an enable_auto_if method |
||||
|
||||
This performs the opposite task of the disable_auto_if method, enabling the |
||||
feature if the condition is true. |
Loading…
Reference in new issue