aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-06-25 16:22:28 +0200
committerSimon Ser <contact@emersion.fr>2021-06-30 13:37:00 +0200
commit8348178c66c3c2e398013a745365b36636222c52 (patch)
tree84c17ac1427fbe63937634af552a4454644fbd2f /meson.build
parent5cdce42d1b4bfe5b620fbf19ef06aa88d83b05ea (diff)
build: use meson.global_build_root()
meson.build_root() is deprecated. References: https://github.com/mesonbuild/meson/pull/8629
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
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(
'c',
version: '1.6',
license: 'MIT',
- meson_version: '>=0.53.0',
+ meson_version: '>=0.58.1',
default_options: [
'c_std=c11',
'warning_level=2',
@@ -180,7 +180,7 @@ add_project_arguments('-DSWAY_VERSION=@0@'.format(version), language: 'c')
# Compute the relative path used by compiler invocations.
source_root = meson.current_source_dir().split('/')
-build_root = meson.build_root().split('/')
+build_root = meson.global_build_root().split('/')
relative_dir_parts = []
i = 0
in_prefix = true