mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-25 16:42:26 +00:00
build: use meson.override_dependency
When built as a subproject, this removes the need for the parent project to know about the dependency variable name. This requires Meson 0.54.0.
This commit is contained in:
parent
f0d818f36e
commit
0b882475ad
@ -3,7 +3,7 @@ project(
|
|||||||
'c',
|
'c',
|
||||||
version: '0.10.0',
|
version: '0.10.0',
|
||||||
license: 'MIT',
|
license: 'MIT',
|
||||||
meson_version: '>=0.51.2',
|
meson_version: '>=0.54.0',
|
||||||
default_options: [
|
default_options: [
|
||||||
'c_std=c11',
|
'c_std=c11',
|
||||||
'warning_level=2',
|
'warning_level=2',
|
||||||
@ -167,6 +167,8 @@ wlroots = declare_dependency(
|
|||||||
include_directories: wlr_inc,
|
include_directories: wlr_inc,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
meson.override_dependency('wlroots', wlroots)
|
||||||
|
|
||||||
summary = [
|
summary = [
|
||||||
'',
|
'',
|
||||||
'----------------',
|
'----------------',
|
||||||
|
Loading…
Reference in New Issue
Block a user