mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
build: use meson.global_build_root()
meson.build_root() is deprecated. References: https://github.com/mesonbuild/meson/pull/8629
This commit is contained in:
parent
5cdce42d1b
commit
8348178c66
|
@ -3,7 +3,7 @@ project(
|
||||||
'c',
|
'c',
|
||||||
version: '1.6',
|
version: '1.6',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.53.0',
|
meson_version: '>=0.58.1',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=2',
|
'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.
|
# Compute the relative path used by compiler invocations.
|
||||||
source_root = meson.current_source_dir().split('/')
|
source_root = meson.current_source_dir().split('/')
|
||||||
build_root = meson.build_root().split('/')
|
build_root = meson.global_build_root().split('/')
|
||||||
relative_dir_parts = []
|
relative_dir_parts = []
|
||||||
i = 0
|
i = 0
|
||||||
in_prefix = true
|
in_prefix = true
|
||||||
|
|
Loading…
Reference in a new issue