aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-01-08 11:39:06 -0800
committerDylan Baker <dylan@pnwbakers.com>2019-01-08 11:40:27 -0800
commit724c97ef4e8b921dfa7dd76f86efd1d0305723c5 (patch)
tree36002e9294d82aad2760c0ac66770260ad06ea5e
parentbc0bcc37f60793f210eac1d70c27adf81230a73c (diff)
downloadmeson-724c97ef4e8b921dfa7dd76f86efd1d0305723c5.zip
meson-724c97ef4e8b921dfa7dd76f86efd1d0305723c5.tar.gz
meson-724c97ef4e8b921dfa7dd76f86efd1d0305723c5.tar.bz2
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.
-rw-r--r--docs/markdown/Porting-from-autotools.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/markdown/Porting-from-autotools.md b/docs/markdown/Porting-from-autotools.md
index 5c4c35d..b60ecfe 100644
--- a/docs/markdown/Porting-from-autotools.md
+++ b/docs/markdown/Porting-from-autotools.md
@@ -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