Updated meson build

This commit is contained in:
gabime 2019-11-04 23:38:31 +02:00
parent a13b0abb7d
commit 4a4f13be46

View File

@ -41,11 +41,14 @@ spdlog_srcs = files([
'src/async.cpp',
'src/color_sinks.cpp',
'src/file_sinks.cpp',
'src/fmt.cpp',
'src/spdlog.cpp',
'src/stdout_sinks.cpp'
])
if not get_option('external_fmt')
spdlog_srcs+= 'src/fmt.cpp'
endif
if get_option('library_type') == 'static'
spdlog = static_library(
'spdlog',
@ -76,7 +79,6 @@ spdlog_dep = declare_dependency(
# ----------------------------------
# --- Header only dependency ---
# ----------------------------------
spdlog_headeronly_dep = declare_dependency(
include_directories : spdlog_inc,
compile_args : compile_args,