From 67e5d790d13dc43eb6c2018f47d0c529fdfe395c Mon Sep 17 00:00:00 2001 From: jackun Date: Wed, 11 Aug 2021 02:13:31 +0300 Subject: [PATCH] Build and link to spdlog as static lib Speeds up compiling a bit --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 2b3f8c1..4957fb4 100644 --- a/meson.build +++ b/meson.build @@ -21,6 +21,7 @@ pre_args = [ '-D__STDC_FORMAT_MACROS', '-D__STDC_LIMIT_MACROS', '-DPACKAGE_VERSION="@0@"'.format(meson.project_version()), + '-DSPDLOG_COMPILED_LIB' ] # Define DEBUG for debug builds only (debugoptimized is not included on this one) @@ -249,6 +250,7 @@ spdlog_dep = cpp.find_library('spdlog', required: get_option('use_system_spdlog' if not spdlog_dep.found() spdlog_sp = subproject('spdlog', default_options: [ 'default_library=static', + 'compile_library=true', ]) spdlog_dep = spdlog_sp.get_variable('spdlog_dep') else