mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
meson: add fallback to fmt dependency
Now `fmt` library can be used as subproject which helps with cross compilation.
This commit is contained in:
parent
58e68901c7
commit
aac085a9be
@ -23,7 +23,7 @@ if get_option('external_fmt')
|
|||||||
if not meson.version().version_compare('>=0.49.0')
|
if not meson.version().version_compare('>=0.49.0')
|
||||||
warning('Finding fmt can fail with meson versions before 0.49.0')
|
warning('Finding fmt can fail with meson versions before 0.49.0')
|
||||||
endif
|
endif
|
||||||
dep_list += dependency('fmt')
|
dep_list += dependency('fmt', fallback : ['fmt', 'fmt_dep'])
|
||||||
compile_args += '-DSPDLOG_FMT_EXTERNAL'
|
compile_args += '-DSPDLOG_FMT_EXTERNAL'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user