]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: add an option "WITH_FMT_HEADER_ONLY"
authorKefu Chai <kchai@redhat.com>
Fri, 23 Jul 2021 09:52:12 +0000 (17:52 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Jul 2021 05:49:25 +0000 (13:49 +0800)
commit06bd71cfee135ee59280bb0e3f2d9318d6dca988
tree4344a889565e7b4bcd0b33ed3ee7bb6dfaf5d748
parentb1af9a74706fe81f0e53034d1db0679d2d948b7c
cmake: add an option "WITH_FMT_HEADER_ONLY"

in this change:

* an interface library named "fmt-header-only" is introduced. it brings
  the support to the header only fmt library.
* fmt::fmt is renamed to fmt
* an option named "WITH_FMT_HEADER_ONLY" is introduced
* fmt::fmt is an alias of "fmt-header-only" if "WITH_FMT_HEADER_ONLY"
  is "ON", and an alias of "fmt" otherwise.

because fmt is packaged in EPEL, while librados is packaged
in RHEL, so we cannot have fmt as a runtime dependency of librados.
to address this issue an option "WITH_FMT_HEADER_ONLY" is introduced, so
that we can enable it when building Ceph with the header version of fmt.
and the built packages won't have runtime dependency of fmt.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d81478b5690f9e3d36a7738223c737fc96a34d28)

Conflicts:
src/CMakeLists.txt
src/common/CMakeLists.txt: trivial resolution
cmake/modules/Findfmt.cmake
src/CMakeLists.txt
src/common/CMakeLists.txt
src/mon/CMakeLists.txt
src/msg/CMakeLists.txt
src/neorados/CMakeLists.txt
src/osd/CMakeLists.txt
src/tools/CMakeLists.txt