diff options
author | Simon Ser <contact@emersion.fr> | 2021-06-25 16:22:28 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-06-30 13:37:00 +0200 |
commit | 8348178c66c3c2e398013a745365b36636222c52 (patch) | |
tree | 84c17ac1427fbe63937634af552a4454644fbd2f | |
parent | contrib: drop incr_version script (diff) | |
download | sway-8348178c66c3c2e398013a745365b36636222c52.tar.gz sway-8348178c66c3c2e398013a745365b36636222c52.tar.zst sway-8348178c66c3c2e398013a745365b36636222c52.zip |
build: use meson.global_build_root()
meson.build_root() is deprecated.
References: https://github.com/mesonbuild/meson/pull/8629
-rw-r--r-- | meson.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meson.build b/meson.build index cbab080a..7ff085b5 100644 --- a/meson.build +++ b/meson.build | |||
@@ -3,7 +3,7 @@ project( | |||
3 | 'c', | 3 | 'c', |
4 | version: '1.6', | 4 | version: '1.6', |
5 | license: 'MIT', | 5 | license: 'MIT', |
6 | meson_version: '>=0.53.0', | 6 | meson_version: '>=0.58.1', |
7 | default_options: [ | 7 | default_options: [ |
8 | 'c_std=c11', | 8 | 'c_std=c11', |
9 | 'warning_level=2', | 9 | 'warning_level=2', |
@@ -180,7 +180,7 @@ add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c') | |||
180 | 180 | ||
181 | # Compute the relative path used by compiler invocations. | 181 | # Compute the relative path used by compiler invocations. |
182 | source_root = meson.current_source_dir().split('/') | 182 | source_root = meson.current_source_dir().split('/') |
183 | build_root = meson.build_root().split('/') | 183 | build_root = meson.global_build_root().split('/') |
184 | relative_dir_parts = [] | 184 | relative_dir_parts = [] |
185 | i = 0 | 185 | i = 0 |
186 | in_prefix = true | 186 | in_prefix = true |