[devhelp] build: use add_project_arguments() instead of add_global_arguments()
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] build: use add_project_arguments() instead of add_global_arguments()
- Date: Mon, 11 Nov 2019 09:23:50 +0000 (UTC)
commit 5c0911d04cf2e3256700c4f741058e91190a4e03
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Nov 11 10:21:24 2019 +0100
build: use add_project_arguments() instead of add_global_arguments()
See the documentation of those functions.
meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index 846241ff..77e57b04 100644
--- a/meson.build
+++ b/meson.build
@@ -94,7 +94,7 @@ CONFIG_H_INCLUDE_DIR = include_directories('.')
# For #include <devhelp/something.h>
ROOT_INCLUDE_DIR = include_directories('.')
-add_global_arguments(
+add_project_arguments(
'-DG_LOG_DOMAIN="@0@"'.format(meson.project_name()),
language : 'c'
)
@@ -151,7 +151,7 @@ warning_cflags = [
c_compiler = meson.get_compiler('c')
supported_warning_cflags = c_compiler.get_supported_arguments(warning_cflags)
-add_global_arguments(supported_warning_cflags, language : 'c')
+add_project_arguments(supported_warning_cflags, language : 'c')
##### end CFLAGS
subdir('data')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]