diff options
| author | Matthew Smith <matthew@gentoo.org> | 2024-02-25 10:39:02 +0000 |
|---|---|---|
| committer | Matthew Smith <matthew@gentoo.org> | 2024-02-25 10:42:22 +0000 |
| commit | f88acc0446de81afb962af5ef381f74e7ca2c296 (patch) | |
| tree | 68f7a3795c962ffc310968e6975d162b7e483926 /meson.build | |
| parent | 9d7f3f17d8b62e35407f9cd37d7129d28f601709 (diff) | |
build: add cld2 option
Add an option for builders to explicitly disable cld2, instead of
relying on the automatic detection.
Diffstat (limited to 'meson.build')
| -rw-r--r-- | meson.build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meson.build b/meson.build index 6f4623b..ab2aead 100644 --- a/meson.build +++ b/meson.build @@ -189,11 +189,11 @@ else endif # optionally, use Compact Language Detector2 if we can find it. -cld2_dep = meson.get_compiler('cpp').find_library('cld2', required: false) -if cld2_dep.found() +cld2_dep = meson.get_compiler('cpp').find_library('cld2', required: get_option('cld2')) +if not get_option('cld2').disabled() and cld2_dep.found() config_h_data.set('HAVE_CLD2', 1) else - message('CLD2 not found; no support for language detection') + message('CLD2 not found or disabled; no support for language detection') endif # note: these are for the unit-tests |
