]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: remove duplicated linked lib for libcommon
authorKefu Chai <kchai@redhat.com>
Fri, 29 Jul 2016 04:48:23 +0000 (12:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 29 Jul 2016 15:12:33 +0000 (23:12 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 92feff535ea9c501112861d7c0bf48d649f77590..463d0d3c2e334c5e526d350cbce68a1c6069102f 100644 (file)
@@ -506,7 +506,9 @@ endif(ENABLE_SHARED)
 add_library(common STATIC ${libcommon_files}
   $<TARGET_OBJECTS:mon_common_objs>
   $<TARGET_OBJECTS:common_mountcephfs_objs>)
-target_link_libraries(common ${CRYPTO_LIBS} ${CMAKE_DL_LIBS})
+target_link_libraries(common json_spirit erasure_code rt resolv
+  ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES}
+  ${CRYPTO_LIBS} ${CMAKE_DL_LIBS})
 
 set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c
   ${CMAKE_SOURCE_DIR}/src/common/version.cc
@@ -521,8 +523,6 @@ endif(HAVE_ARMV8_CRC)
 
 add_library(common_utf8 STATIC common/utf8.c)
 
-target_link_libraries(common json_spirit erasure_code rt resolv ${CRYPTO_LIBS} ${Boost_LIBRARIES} ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES})
-
 if(${WITH_LTTNG})
   add_subdirectory(tracing)
 endif(${WITH_LTTNG})