]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Fri, 23 Jul 2021 18:26:45 +0000 (02:26 +0800)
commitd81478b5690f9e3d36a7738223c737fc96a34d28
tree3813813a2ee8bca5409dcc846566af6e1a19d444
parent0e0d320525437ce6868ac6dd532ccd4c7e4a6fff
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>
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