fix link error 53/170053/2 accepted/tizen/unified/20180222.080226 submit/tizen/20180222.002127
authorJongkyu Koo <jk.koo@samsung.com>
Tue, 13 Feb 2018 05:54:57 +0000 (14:54 +0900)
committerJongkyu Koo <jk.koo@samsung.com>
Wed, 21 Feb 2018 09:23:46 +0000 (18:23 +0900)
Change-Id: I5d719912c2a1cfad0406590b94e315089acf3367
Signed-off-by: Jongkyu Koo <jk.koo@samsung.com>
server/CMakeLists.txt
server/ctsvc_server_utils.c
test/CMakeLists.txt

index 89ef288..b7306ba 100644 (file)
@@ -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})
index 17f4894..534cf8b 100644 (file)
@@ -22,6 +22,7 @@
 #include <ITapiPhonebook.h>
 #include <TapiUtility.h>
 #include <system_info.h>
+#include <pthread.h>
 
 #include "contacts.h"
 
index 51112a7..2f2f873 100644 (file)
@@ -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})