Signed-off-by: Orit Wasserman <owasserm@redhat.com>
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
${unittest_str_map_srcs}
$<TARGET_OBJECTS:heap_profiler_objs>
)
-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})