From 347dfcf1b2cb058cdc31f4fa670dbe55040adc3b Mon Sep 17 00:00:00 2001 From: Matthew Bentham Date: Mon, 19 Nov 2018 11:28:58 +0000 Subject: Fix for Github issue #103 Use CMAKE_THREAD_LIBS_INIT instead of pthread in sample_app. The separate pthread library doesn't exist on Android. Change-Id: I9a363ba7d29d2673359349f5f4288844f0550946 --- samples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index 3009ac9a67..5716054eb1 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -1,4 +1,4 @@ if(BUILD_SAMPLE_APP) add_executable(SimpleSample SimpleSample.cpp) - target_link_libraries(SimpleSample armnn pthread) + target_link_libraries(SimpleSample armnn ${CMAKE_THREAD_LIBS_INIT}) endif() -- cgit v1.2.1