meson: Remove summary() from version_compare() block

The version_compare() block is redundant because we require meson 0.56
now, and it fixes a spurious warning:

```
fontconfig| WARNING: Project targeting '>= 0.53' but tried to use feature introduced in '0.54.0': list_sep arg in summary.
```
This commit is contained in:
Nirbheek Chauhan 2022-01-09 17:04:25 +05:30
parent e474b380ff
commit 7b09c81dab
1 changed files with 7 additions and 9 deletions

View File

@ -381,13 +381,11 @@ fc_headers = [
install_headers(fc_headers, subdir: meson.project_name())
# Summary
if meson.version().version_compare('>= 0.53')
doc_targets = get_variable('doc_targets', [])
doc_targets = get_variable('doc_targets', [])
summary({
summary({
'Documentation': (doc_targets.length() > 0 ? doc_targets : false),
'NLS': not get_option('nls').disabled(),
'Tests': not get_option('tests').disabled(),
'Tools': not get_option('tools').disabled(),
}, section: 'General', bool_yn: true, list_sep: ', ')
endif