aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Hughes <robert.hughes@arm.com>2019-11-13 11:41:36 +0000
committerRob Hughes <robert.hughes@arm.com>2019-11-14 10:47:03 +0000
commit199c98eaa76d35d1122a02596b3a1db93b07c22c (patch)
treea8a7099d5fc520e03805e6d6069533df04ba6409
parent270233fc7c57486026f381cd8ba6a71b84d7be2d (diff)
downloadarmnn-199c98eaa76d35d1122a02596b3a1db93b07c22c.tar.gz
Fix link error due to pthread being linked in the wrong order
Change-Id: I9602c758fe462b65d67de491d91fb2392b09b8bd Signed-off-by: Robert Hughes <robert.hughes@arm.com>
-rw-r--r--CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6856da63f6..89f0e5af56 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -564,7 +564,7 @@ if(ARMCOMPUTECL)
target_link_libraries(armnn ${OPENCL_LIBRARIES})
endif()
-if(PROFILING_BACKEND_STREAMLINE)
+if(PROFILING_BACKEND_STREAMLINE AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android)))
target_link_libraries(armnn pthread)
endif()
@@ -951,14 +951,14 @@ if(BUILD_GATORD_MOCK)
add_executable_ex(GartordMock tests/profiling/gatordmock/GatordMockMain.cpp)
- if(Threads_FOUND AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android)))
- target_link_libraries(GartordMock pthread)
- endif()
-
target_link_libraries(GartordMock
armnn
gatordMockService
${Boost_PROGRAM_OPTIONS_LIBRARY}
${Boost_SYSTEM_LIBRARY})
+ if(Threads_FOUND AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android)))
+ target_link_libraries(GartordMock pthread)
+ endif()
+
endif()