Build and link to spdlog as static lib

Speeds up compiling a bit
This commit is contained in:
jackun 2021-08-11 02:13:31 +03:00
parent 9df9df0f4f
commit 67e5d790d1
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

View File

@ -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