aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Bentham <matthew.bentham@arm.com>2018-11-19 11:28:58 +0000
committerKeith Davis Arm <keith.davis@arm.com>2018-11-19 12:16:03 +0000
commit347dfcf1b2cb058cdc31f4fa670dbe55040adc3b (patch)
treef0b61a2c6dcf07410b3801251b27cfdff07c69a4
parent22fbc9ef6c67989820a243693cf79225d990d855 (diff)
downloadarmnn-347dfcf1b2cb058cdc31f4fa670dbe55040adc3b.tar.gz
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
-rw-r--r--samples/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()