1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Fix logic so OpenCL is not linked if OPENCL_LIBRARIES
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Author: Francis Murtagh <francis.murtagh@arm.com>
X-Dgit-Generated: 20.08-1 e76ce195d3af29fd378ceb738a1787d7ad1c3ae1
---
--- armnn-20.08.orig/CMakeLists.txt
+++ armnn-20.08/CMakeLists.txt
@@ -611,6 +611,10 @@ if(ARMCOMPUTENEON OR ARMCOMPUTECL)
target_link_libraries(armnn ${ARMCOMPUTE_LIBRARIES})
endif()
+if(ARMCOMPUTECL AND OPENCL_LIBRARIES)
+ target_link_libraries(armnn ${OPENCL_LIBRARIES})
+endif()
+
if(PROFILING_BACKEND_STREAMLINE AND (NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL Android)))
target_link_libraries(armnn pthread)
endif()
|