1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
From: Francis Murtagh <francis.murtagh@arm.com>
Date: Tue, 1 Aug 2023 21:39:26 +0200
Subject: Allow use of system OpenCl includes
X-Dgit-Generated: 20.08-1 11545e3dfbda4df4eef158108487ec512ce61411
Signed-off-by: Francis Murtagh <francis.murtagh@arm.com>
---
cmake/GlobalConfig.cmake | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
index 1633a2d..17d406f 100644
--- a/cmake/GlobalConfig.cmake
+++ b/cmake/GlobalConfig.cmake
@@ -379,9 +379,7 @@ if(ARMCOMPUTECL)
message(STATUS "Flatbuffers library located at: ${FLATBUFFERS_LIBRARY}")
# Always use Arm compute library OpenCL headers
- find_path(OPENCL_INCLUDE CL/opencl.hpp
- PATHS ${ARMCOMPUTE_ROOT}/include
- NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)
+ find_path(OPENCL_INCLUDE CL/opencl.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)
|