]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
build: Fix fmt version check
authorAdam Emerson <aemerson@redhat.com>
Sat, 28 Oct 2023 17:29:59 +0000 (13:29 -0400)
committerAdam Emerson <aemerson@redhat.com>
Mon, 30 Oct 2023 14:38:36 +0000 (10:38 -0400)
commit686dd3d838b6de6bf1101f0b61f729426b0bccad
tree6abd08bd996f5d477c99f6b0fbd1e9d8ef147373
parent478a058b4d5b3c4c2c4b912770f6324b6d1eeb57
build: Fix fmt version check

Currently, when attempting to build ceph on a system with fmt
installed, we try to build against it whatever the version. This
constantly breaks people's builds, since newer versions of fmt often
change the API.

This change specifies that versions must be below 10 as well as at or
above 8.1.1, so that on systems with a new format, we fall back to
using the submodule.

It also removes the `Findfmt.cmake` module, as that does not check
the installed version. Instead, we use the cmake config file installed by
the system package of fmt and does support version checking.

Signed-off-by: Adam Emerson <aemerson@redhat.com>
cmake/modules/Findfmt.cmake [deleted file]
src/CMakeLists.txt