[gtk/build-warning] build: Do not use `install` argument for configure_file()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/build-warning] build: Do not use `install` argument for configure_file()
- Date: Fri, 29 Mar 2019 14:03:00 +0000 (UTC)
commit 71bdac023722268677921d086ba02d2bb1de0ee4
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Mar 29 13:59:58 2019 +0000
build: Do not use `install` argument for configure_file()
The `install` argument for configure_file() was introduced in Meson
0.50, and was ignored in earlier versions.
Since we're still using Meson 0.48 as a baseline, and since it doesn't
cost us nothing to use a conditional in the only place where we used the
`install` argument, let's drop it. This avoids a warning in newer
releases of Meson.
testsuite/tools/meson.build | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/testsuite/tools/meson.build b/testsuite/tools/meson.build
index f0cbb65948..87daf519fd 100644
--- a/testsuite/tools/meson.build
+++ b/testsuite/tools/meson.build
@@ -6,11 +6,12 @@ if bash.found()
test_env = environment()
foreach t : ['simplify', 'settings']
- configure_file(output: t,
- input: '@0@.in'.format(t),
- copy: true,
- install: get_option('install-tests'),
- install_dir: testexecdir)
+ if get_option('install-tests')
+ configure_file(output: t,
+ input: '@0@.in'.format(t),
+ copy: true,
+ install_dir: testexecdir)
+ endif
test(t, bash,
args: t,
workdir: meson.current_build_dir(),
@@ -35,7 +36,6 @@ if get_option('install-tests')
configure_file(output: '@0@.test'.format(t),
input: 'tools.test.in',
configuration: test_conf,
- install: true,
install_dir: testdatadir)
endforeach
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]