summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 2bfd814..257d3de 100644
--- a/meson.build
+++ b/meson.build
@@ -41,9 +41,7 @@ endif
m_dep = cc.find_library('m', required: false)
-serd_dep = dependency('serd-0',
- version: '>= 0.30.10',
- fallback: ['serd', 'serd_dep'])
+serd_dep = dependency('serd-0', version: '>= 0.30.10')
###########
# Library #
@@ -99,6 +97,9 @@ pkg.generate(
version: meson.project_version(),
)
+# Override pkg-config dependency for internal meson dependants
+meson.override_dependency(versioned_name, sord_dep)
+
# Install headers to a versioned include directory
install_headers(c_headers, subdir: versioned_name / 'sord')
install_headers(cpp_headers, subdir: versioned_name / 'sord')