aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/dep_get_variable.md
blob: 54373d9632cda74e1a0019badf9bfbe6fa4fcfc0 (plain)
1
2
3
4
5
6
7
8
## `dep.get_variable(varname)`

`dep.get_variable()` now has `varname` as first positional argument.
It is used as default value for `cmake`, `pkgconfig`, `configtool` and `internal`
keyword arguments. It is useful in the common case where `pkgconfig` and `internal`
use the same variable name, in which case it's easier to write `dep.get_variable('foo')`
instead of `dep.get_variable(pkgconfig: 'foo', internal: 'foo')`.