Use statically linked spdlog over system spdlog/libfmt
Some checks failed
Build ptprnt / build (push) Failing after 2m28s
Some checks failed
Build ptprnt / build (push) Failing after 2m28s
This commit is contained in:
12
meson.build
12
meson.build
@@ -20,10 +20,16 @@ project(
|
||||
)
|
||||
|
||||
usb_dep = dependency('libusb-1.0')
|
||||
log_dep = dependency('spdlog')
|
||||
fmt_dep = dependency('fmt')
|
||||
pangocairo_dep = dependency('pangocairo')
|
||||
|
||||
# spdlog with std::format (C++20) - static library
|
||||
spdlog_proj = subproject('spdlog', default_options: ['std_format=enabled', 'default_library=static', 'compile_library=true'])
|
||||
log_dep = spdlog_proj.get_variable('spdlog_dep')
|
||||
|
||||
if not log_dep.found()
|
||||
error('spdlog not found, can not proceed')
|
||||
endif
|
||||
|
||||
# CLI11
|
||||
cli11_proj = subproject('cli11')
|
||||
cli11_dep = cli11_proj.get_variable('CLI11_dep')
|
||||
@@ -50,7 +56,7 @@ ptprnt_exe = executable(
|
||||
'ptprnt',
|
||||
'src/main.cpp',
|
||||
install: true,
|
||||
dependencies: [usb_dep, log_dep, fmt_dep, pangocairo_dep, cli11_dep],
|
||||
dependencies: [usb_dep, log_dep, pangocairo_dep, cli11_dep],
|
||||
include_directories: incdir,
|
||||
sources: [ptprnt_srcs],
|
||||
cpp_args: cpp_args,
|
||||
|
||||
Reference in New Issue
Block a user