meson: Use add_project_arguments for common cflags

We were passing around the common cflags and setting them for each library
or executable, but this is just a repetition given we can just use
add_project_arguments for this.
This commit is contained in:
Marco Trevisan (Treviño)
2019-12-04 12:32:14 +01:00
parent 44af2173a8
commit 7e70344b4a
4 changed files with 12 additions and 14 deletions

View File

@@ -6,8 +6,7 @@ foreach example: examples
dependencies: [ libfprint_dep, glib_dep ],
include_directories: [
root_inc,
],
c_args: common_cflags)
])
endforeach
executable('cpp-test',
@@ -15,5 +14,4 @@ executable('cpp-test',
dependencies: libfprint_dep,
include_directories: [
root_inc,
],
c_args: common_cflags)
])