summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/coercing_option_values_deprecated.md
blob: 36213877a35387139baa0a2f8ef76ca9f2dfce74 (plain)
1
2
3
4
5
6
7
8
9
## coercing values in the option() function is deprecated

Currently code such as:
```meson
option('foo', type : 'boolean', value : 'false')
```
works, because Meson coerces `'false'` to `false`.

This should be avoided, and will now result in a deprecation warning.