From 333961a5674e35295e8eea89fc33e588b1c5049a Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=ED=95=9C=EC=A2=85/On-Device=20Lab=28SR=29/Enginee?= =?utf8?q?r/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Fri, 30 Aug 2019 18:25:38 +0900 Subject: [PATCH] [neurun] Use LIB_PTHREAD variable in CMake (#7069) Use variable `${LIB_PTHREAD}` rather than hardcoded `pthread`. This is useful for Android build which does not have pthread lib. Android contains pthread in libc. Signed-off-by: Hanjoung Lee --- runtimes/neurun/frontend/api/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/neurun/frontend/api/CMakeLists.txt b/runtimes/neurun/frontend/api/CMakeLists.txt index a79d92d..10a33a8 100644 --- a/runtimes/neurun/frontend/api/CMakeLists.txt +++ b/runtimes/neurun/frontend/api/CMakeLists.txt @@ -5,7 +5,7 @@ add_library(${NEURUN_DEV} SHARED ${API_SRC}) target_link_libraries(${NEURUN_DEV} PUBLIC nnfw-header) target_link_libraries(${NEURUN_DEV} PUBLIC neurun_core) # TODO Link PRIVATE neurun_core -target_link_libraries(${NEURUN_DEV} PRIVATE jsoncpp tflite_loader pthread) +target_link_libraries(${NEURUN_DEV} PRIVATE jsoncpp tflite_loader ${LIB_PTHREAD}) target_link_libraries(${NEURUN_DEV} PRIVATE nnfw_common) target_link_libraries(${NEURUN_DEV} PRIVATE nnfw_coverage) -- 2.7.4