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

Loading…
Cancel
Save