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:
Dylan Baker 2019-01-08 11:39:06 -08:00
parent bc0bcc37f6
commit 724c97ef4e
1 changed files with 3 additions and 3 deletions

View File

@ -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