From f43bf2ec131672625496bf87421a4b168f53b1c9 Mon Sep 17 00:00:00 2001 From: Orit Wasserman Date: Thu, 7 May 2015 11:01:45 +0200 Subject: [PATCH] cmake: add common_utf8 lib to link unittest_str_map Signed-off-by: Orit Wasserman --- src/CMakeLists.txt | 4 +++- src/test/CMakeLists.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 973deab0c1f2..f075a85d499f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -291,7 +291,9 @@ if(${WITH_PROFILER}) target_link_libraries(common profiler) endif(${WITH_PROFILER}) -target_link_libraries( common json_spirit erasure_code rt uuid ${CRYPTO_LIBS} ${Boost_LIBRARIES}) +add_library(common_utf8 STATIC common/utf8.c) + +target_link_libraries( common json_spirit common_utf8 erasure_code rt uuid ${CRYPTO_LIBS} ${Boost_LIBRARIES}) set(libglobal_srcs global/global_init.cc diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 6a6f4af01e62..6154865294f5 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -400,8 +400,8 @@ add_executable(unittest_str_map ${unittest_str_map_srcs} $ ) -target_link_libraries(unittest_str_map global - ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS} ${UNITTEST_LIBS}) +target_link_libraries(unittest_str_map common global + ${CMAKE_DL_LIBS} ${TCMALLOC_LIBS} ${UNITTEST_LIBS} common) set_target_properties(unittest_str_map PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS}) -- 2.47.3