]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: enable compile-time fmt format string checking 69537/head
authorKefu Chai <k.chai@proxmox.com>
Tue, 16 Jun 2026 12:19:11 +0000 (20:19 +0800)
committerKefu Chai <k.chai@proxmox.com>
Wed, 17 Jun 2026 08:54:51 +0000 (16:54 +0800)
commit1d18b19997d3bbcd4f7d82d8430a3d63986cea9f
treeb0806dacaaf093b3dd21f1010ae72e33c3eab7df
parent863f65fdee51c02812257aeb8bfc6771b379c29d
cmake: enable compile-time fmt format string checking

seastar checks log format strings at compile time when
Seastar_LOGGER_COMPILE_TIME_FMT is on; the option is gated on
fmt_VERSION >= 9.0.0. ceph builds fmt via add_subdirectory(), which
leaves the version in fmt's own FMT_VERSION and never sets the lowercase
fmt_VERSION the option reads, so the check was silently off for crimson.
read the version off the fmt target and expose it so the option turns
on.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/CMakeLists.txt