docs: recommend add_project_arguments instead of add_global_arguments [skip ci]
As autotools doesn't have anything like wraps so it doesn't need to differentiate, but meson does so it should.
This commit is contained in:
parent
bc0bcc37f6
commit
724c97ef4e
|
@ -450,9 +450,9 @@ AM_CPPFLAGS = \
|
|||
`meson.build`:
|
||||
|
||||
```meson
|
||||
add_global_arguments('-DG_LOG_DOMAIN="As"', language : 'c')
|
||||
add_global_arguments('-DAS_COMPILATION', language : 'c')
|
||||
add_global_arguments('-DLOCALSTATEDIR="/var"', language : 'c')
|
||||
add_project_arguments('-DG_LOG_DOMAIN="As"', language : 'c')
|
||||
add_project_arguments('-DAS_COMPILATION', language : 'c')
|
||||
add_project_arguments('-DLOCALSTATEDIR="/var"', language : 'c')
|
||||
```
|
||||
|
||||
### Tests
|
||||
|
|
Loading…
Reference in New Issue