meson: Use the new summary() function if possible

pull/1500/head
Daniel Mensinger 6 years ago
parent 414010e7a0
commit 530bdc0c0c
No known key found for this signature in database
GPG Key ID: 54DD94C131E277D4

@ -176,20 +176,13 @@ endif
# --- Summary ---
# -------------------
summary_str = '''spdlog build summary:
- using external fmt: @0@
- building tests: @1@
- building examples: @2@
- building benchmarks: @3@
- library type: @4@
- no exceptions: @5@
'''.format(
get_option('external_fmt'),
get_option('enable_tests'),
get_option('enable_examples'),
get_option('enable_benchmarks'),
get_option('library_type'),
get_option('no_exceptions')
)
message(summary_str)
if meson.version().version_compare('>=0.53.0')
summary({
'external fmt': get_option('external_fmt'),
'building tests': get_option('enable_tests'),
'building examples': get_option('enable_examples'),
'building benchmarks': get_option('enable_benchmarks'),
'library type': get_option('library_type'),
'no exceptions': get_option('no_exceptions'),
})
endif

Loading…
Cancel
Save