projects
/
platform
/
core
/
uifw
/
dali-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60c49a9
)
Linking pthreads optional
48/213648/1
author
adam.b
<adam.b@samsung.com>
Mon, 9 Sep 2019 14:59:55 +0000
(15:59 +0100)
committer
adam.b
<adam.b@samsung.com>
Mon, 9 Sep 2019 14:59:55 +0000
(15:59 +0100)
Pthreads added to the linked libs only when exists.
Change-Id: Icfe78665bf00705f2d2ef53634095ea9e25d7789
build/tizen/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/build/tizen/CMakeLists.txt
b/build/tizen/CMakeLists.txt
index
4bb2198
..
5c2673b
100644
(file)
--- a/
build/tizen/CMakeLists.txt
+++ b/
build/tizen/CMakeLists.txt
@@
-139,8
+139,14
@@
ENDIF()
ADD_LIBRARY( ${name} ${LIBTYPE} ${SOURCES} )
+# pthread required due to gcc issue
+FIND_LIBRARY(PTHREAD pthread)
+IF(PTHREAD)
+ SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} -lpthread)
+ENDIF()
+
TARGET_LINK_LIBRARIES( ${name}
- -lpthread
+ ${OPTIONAL_LIBS}
${COVERAGE}
)