mirror of
https://github.com/json-c/json-c.git
synced 2026-03-24 15:39:07 +08:00
meson: use override_dependency
Allows wraps to use the dependency_names syntax instead of the possibly changing variable syntax. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
|
||||
project('json-c', 'c', version: '0.18.99',
|
||||
meson_version: '>=0.54.0',
|
||||
default_options: ['buildtype=release', 'warning_level=2'])
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
@@ -257,6 +258,7 @@ libjson = library('json-c',
|
||||
)
|
||||
|
||||
jsonc_dep = declare_dependency(link_with: libjson, include_directories: inc)
|
||||
meson.override_dependency('json-c', jsonc_dep)
|
||||
|
||||
# Install headers
|
||||
install_headers(
|
||||
|
||||
Reference in New Issue
Block a user