summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-09 09:37:15 -0400
committerDavid Robillard <d@drobilla.net>2022-08-09 09:37:15 -0400
commit9960380c5581b02e927e39c51cb1c38d020a30b6 (patch)
tree809a44ecd58cada7c4f19d14db77839624524cd8 /meson.build
parentc1cda16cede3998f0f590db932944bce39550820 (diff)
downloadsord-9960380c5581b02e927e39c51cb1c38d020a30b6.tar.gz
sord-9960380c5581b02e927e39c51cb1c38d020a30b6.tar.bz2
sord-9960380c5581b02e927e39c51cb1c38d020a30b6.zip
Allow programs to be used from subproject
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build16
1 files changed, 10 insertions, 6 deletions
diff --git a/meson.build b/meson.build
index 1a991bc..bf7d2dc 100644
--- a/meson.build
+++ b/meson.build
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: CC0-1.0 OR ISC
project('sord', ['c'],
- version: '0.16.12',
+ version: '0.16.13',
license: 'ISC',
meson_version: '>= 0.56.0',
default_options: [
@@ -114,14 +114,18 @@ if not get_option('tools').disabled()
install: true,
dependencies: sord_dep)
+ meson.override_find_program('sordi', sordi)
+
pcre_dep = dependency('libpcre', required: false)
if pcre_dep.found()
- sordi = executable('sord_validate',
- files('src/sord_validate.c'),
- c_args: c_suppressions,
- install: true,
- dependencies: [sord_dep, pcre_dep])
+ sord_validate = executable('sord_validate',
+ files('src/sord_validate.c'),
+ c_args: c_suppressions,
+ install: true,
+ dependencies: [sord_dep, pcre_dep])
+
+ meson.override_find_program('sord_validate', sord_validate)
endif
if not get_option('docs').disabled()