File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -189,11 +189,11 @@ else
189189endif
190190
191191# optionally, use Compact Language Detector2 if we can find it.
192- cld2_dep = meson .get_compiler(' cpp' ).find_library (' cld2' , required : false )
193- if cld2_dep.found()
192+ cld2_dep = meson .get_compiler(' cpp' ).find_library (' cld2' , required : get_option ( ' cld2 ' ) )
193+ if not get_option ( ' cld2 ' ).disabled() and cld2_dep.found()
194194 config_h_data.set(' HAVE_CLD2' , 1 )
195195else
196- message (' CLD2 not found; no support for language detection' )
196+ message (' CLD2 not found or disabled ; no support for language detection' )
197197endif
198198
199199# note: these are for the unit-tests
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ option('guile',
2424 value : ' auto' ,
2525 description : ' build the guile scripting support (requires guile-3.x)' )
2626
27+ option (' cld2' ,
28+ type : ' feature' ,
29+ value : ' auto' ,
30+ description : ' Compact Language Detector2' )
31+
2732# by default, this uses guile_dep.get_variable(pkgconfig: 'extensiondir')
2833option (' guile-extension-dir' ,
2934 type : ' string' ,
You can’t perform that action at this time.
0 commit comments