]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: no need to link libglobal and libblkid for testing crush
authorKefu Chai <kchai@redhat.com>
Thu, 16 Jan 2020 07:51:30 +0000 (15:51 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 16 Jan 2020 14:14:00 +0000 (22:14 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crush/CMakeLists.txt

index cc442b3c46852bb4d74a23ae78100b75b9d5c547..0c52410f824f073a66c5af44d9a429dc142e61f2 100644 (file)
@@ -2,14 +2,12 @@
 add_executable(unittest_crush_wrapper
   CrushWrapper.cc)
 add_ceph_unittest(unittest_crush_wrapper)
-target_link_libraries(unittest_crush_wrapper global ${BLKID_LIBRARIES})
+target_link_libraries(unittest_crush_wrapper ceph-common)
 
 # unittest_crush
 add_executable(unittest_crush
-  crush.cc
-  $<TARGET_OBJECTS:unit-main>
-  )
+  crush.cc)
 add_ceph_unittest(unittest_crush parallel)
-target_link_libraries(unittest_crush global m ${BLKID_LIBRARIES})
+target_link_libraries(unittest_crush ceph-common)
 
 add_ceph_test(crush_weights.sh ${CMAKE_CURRENT_SOURCE_DIR}/crush_weights.sh)