1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Description: Allow use of system OpenCl includes
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
Author: Francis Murtagh <francis.murtagh@arm.com>
X-Dgit-Generated: 20.08-1 11545e3dfbda4df4eef158108487ec512ce61411
---
--- armnn-20.08.orig/cmake/GlobalConfig.cmake
+++ armnn-20.08/cmake/GlobalConfig.cmake
@@ -324,9 +324,7 @@ endif()
# ARM Compute OpenCL backend
if(ARMCOMPUTECL)
# Always use Arm compute library OpenCL headers
- find_path(OPENCL_INCLUDE CL/cl2.hpp
- PATHS ${ARMCOMPUTE_ROOT}/include
- NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
+ find_path(OPENCL_INCLUDE CL/cl2.hpp)
# Link against libOpenCL in opencl-1.2-stubs, but don't search there at runtime
link_libraries(-L${ARMCOMPUTE_BUILD_DIR}/opencl-1.2-stubs)
|