diff options
author | Kefu Chai <kchai@redhat.com> | 2021-07-24 09:01:54 +0200 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-07-24 13:28:56 +0200 |
commit | 99ba98cef0a840a2ddd9bd8ca4b3fda4330ddd5a (patch) | |
tree | 7c281e4a17f334e65819b9218de6a8c838ae0810 /src/common/CMakeLists.txt | |
parent | cmake: make rgw_common a static library (diff) | |
download | ceph-99ba98cef0a840a2ddd9bd8ca4b3fda4330ddd5a.tar.xz ceph-99ba98cef0a840a2ddd9bd8ca4b3fda4330ddd5a.zip |
cmake: use generator exp. for passing fmt::fmt's COMPILE_DEFINITIONS
more concise this way, without yet another redirection.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r-- | src/common/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index d905c9f974a..1272130eb44 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -188,8 +188,8 @@ target_include_directories(common-common-objs PRIVATE ${OPENSSL_INCLUDE_DIR}) target_compile_definitions(common-common-objs PRIVATE "CMAKE_INSTALL_LIBDIR=\"${CMAKE_INSTALL_LIBDIR}\"" "CEPH_INSTALL_FULL_PKGLIBDIR=\"${CEPH_INSTALL_FULL_PKGLIBDIR}\"" - "CEPH_INSTALL_DATADIR=\"${CEPH_INSTALL_DATADIR}\"") -compile_with_fmt(common-common-objs) + "CEPH_INSTALL_DATADIR=\"${CEPH_INSTALL_DATADIR}\"" + $<TARGET_PROPERTY:fmt::fmt,INTERFACE_COMPILE_DEFINITIONS>) add_dependencies(common-common-objs legacy-option-headers) set(common_mountcephfs_srcs |