From: Jongkyu Koo Date: Tue, 13 Feb 2018 05:54:57 +0000 (+0900) Subject: fix link error X-Git-Tag: accepted/tizen/unified/20180222.080226^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F170053%2F2;p=platform%2Fcore%2Fpim%2Fcontacts-service.git fix link error Change-Id: I5d719912c2a1cfad0406590b94e315089acf3367 Signed-off-by: Jongkyu Koo --- diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 89ef288..b7306ba 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -167,6 +167,6 @@ ADD_DEFINITIONS("-D_CONTACTS_IPC_SERVER") #cmake_policy(SET CMP0002 OLD) ADD_EXECUTABLE(${DAEMON} ${SRCS}) -TARGET_LINK_LIBRARIES(${DAEMON} ${daemon_pkgs_LIBRARIES}) +TARGET_LINK_LIBRARIES(${DAEMON} ${daemon_pkgs_LIBRARIES} pthread) INSTALL(TARGETS ${DAEMON} DESTINATION ${BIN_INSTALL_DIR}) diff --git a/server/ctsvc_server_utils.c b/server/ctsvc_server_utils.c index 17f4894..534cf8b 100644 --- a/server/ctsvc_server_utils.c +++ b/server/ctsvc_server_utils.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "contacts.h" diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 51112a7..2f2f873 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -17,6 +17,6 @@ LINK_DIRECTORIES(${test_pkgs_LIBRARY_DIRS}) SET(LIBNAME contacts-service2) ADD_EXECUTABLE(${PROJECT_NAME} ${TEST_SRCS}) -TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${test_pkgs_LIBRARIES} ${LIBNAME} -lpthread) +TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${test_pkgs_LIBRARIES} ${LIBNAME}) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${BIN_INSTALL_DIR})