and there is no need to make the definition public for the executable
target.
Signed-off-by: Kefu Chai <kchai@redhat.com>
${common_srcs})
# for options.cc
target_compile_definitions(common-common-objs PRIVATE
- "-DCEPH_LIBDIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\""
- "-DCEPH_PKGLIBDIR=\"${CMAKE_INSTALL_FULL_PKGLIBDIR}\"")
+ "CEPH_LIBDIR=\"${CMAKE_INSTALL_FULL_LIBDIR}\""
+ "CEPH_PKGLIBDIR=\"${CMAKE_INSTALL_FULL_PKGLIBDIR}\"")
set(common_mountcephfs_srcs
armor.c
add_executable(unittest_librbd
${unittest_librbd_srcs}
$<TARGET_OBJECTS:common_texttable_obj>)
-target_compile_definitions(unittest_librbd PUBLIC "-DTEST_LIBRBD_INTERNALS")
+target_compile_definitions(unittest_librbd PRIVATE "TEST_LIBRBD_INTERNALS")
target_link_libraries(unittest_librbd
cls_rbd
cls_rbd_client
librados
${UNITTEST_LIBS}
radostest)
-target_compile_definitions(ceph_test_librbd PUBLIC "-DTEST_LIBRBD_INTERNALS")
+target_compile_definitions(ceph_test_librbd PRIVATE "TEST_LIBRBD_INTERNALS")
add_executable(ceph_test_librbd_api
test_support.cc