From: Stephane Desneux Date: Fri, 25 Jul 2014 13:20:39 +0000 (+0200) Subject: Add missing gcc option -pthread to build correctly X-Git-Tag: submit/tizen_common/20140728.142410^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a708c47a514f5a890737b1e70fc470687e1d23a4;p=platform%2Fcore%2Fsecurity%2Fsecurity-server.git Add missing gcc option -pthread to build correctly Bug-Tizen: TC-1445 Change-Id: If3ba73190f651baffb8a4cd26d33b970f332ef80 Signed-off-by: Stephane Desneux --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 835f23c..1bb5feb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -49,6 +49,12 @@ INCLUDE_DIRECTORIES( ADD_EXECUTABLE(${TARGET_SECURITY_SERVER} ${SECURITY_SERVER_SOURCES}) +SET_TARGET_PROPERTIES(${TARGET_SECURITY_SERVER} + PROPERTIES + COMPILE_FLAGS "-pthread" + LINK_FLAGS "-pthread" +) + TARGET_LINK_LIBRARIES(${TARGET_SECURITY_SERVER} ${SECURITY_SERVER_DEP_LIBRARIES} ${TARGET_SERVER_COMMON}