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.
pull/4744/head
Dylan Baker 6 years ago
parent bc0bcc37f6
commit 724c97ef4e
  1. 6
      docs/markdown/Porting-from-autotools.md

@ -450,9 +450,9 @@ AM_CPPFLAGS = \
`meson.build`: `meson.build`:
```meson ```meson
add_global_arguments('-DG_LOG_DOMAIN="As"', language : 'c') add_project_arguments('-DG_LOG_DOMAIN="As"', language : 'c')
add_global_arguments('-DAS_COMPILATION', language : 'c') add_project_arguments('-DAS_COMPILATION', language : 'c')
add_global_arguments('-DLOCALSTATEDIR="/var"', language : 'c') add_project_arguments('-DLOCALSTATEDIR="/var"', language : 'c')
``` ```
### Tests ### Tests

Loading…
Cancel
Save