Skip to content

Commit 7b5170e

Browse files
committed
fix: fix the spdlog wrap error with newer fmt >= 11.2.0
1 parent 77bf71d commit 7b5170e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/meson.build b/meson.build
2+
index 18d34cd..1bb306c 100644
3+
--- a/meson.build
4+
+++ b/meson.build
5+
@@ -38,7 +38,6 @@ if get_option('compile_library')
6+
spdlog_compile_args += '-DSPDLOG_SHARED_LIB'
7+
spdlog_compile_args += '-Dspdlog_EXPORTS'
8+
if not fmt_dep.found()
9+
- spdlog_compile_args += '-DFMT_EXPORT'
10+
spdlog_compile_args += '-DFMT_SHARED'
11+
endif
12+
endif

subprojects/spdlog.wrap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ patch_url = https://wrapdb.mesonbuild.com/v2/spdlog_1.15.2-3/get_patch
88
patch_hash = d5ab078661f571ef5113a8e4bc5c4121e16c044e7772a24b44b1ca8f3ee7c6cb
99
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/spdlog_1.15.2-3/spdlog-1.15.2.tar.gz
1010
wrapdb_version = 1.15.2-3
11+
diff_files = spdlog_1.15.2_fmt_11.2.0_compatibility.diff
1112

1213
[provide]
1314
spdlog = spdlog_dep

0 commit comments

Comments
 (0)