summaryrefslogtreecommitdiffstats
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2021-07-24 09:01:54 +0200
committerKefu Chai <kchai@redhat.com>2021-07-24 13:28:56 +0200
commit99ba98cef0a840a2ddd9bd8ca4b3fda4330ddd5a (patch)
tree7c281e4a17f334e65819b9218de6a8c838ae0810 /src/common/CMakeLists.txt
parentcmake: make rgw_common a static library (diff)
downloadceph-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.txt4
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