From aa524e689dd9f8f4816405cf97e6422912d91068 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Fri, 29 Jul 2016 12:48:23 +0800 Subject: [PATCH] cmake: remove duplicated linked lib for libcommon Signed-off-by: Kefu Chai --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 92feff535ea9c..463d0d3c2e334 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -506,7 +506,9 @@ endif(ENABLE_SHARED) add_library(common STATIC ${libcommon_files} $ $) -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}) -- 2.39.5