From cca11fb086588c2b927e001c29580c2ace7c3ceb Mon Sep 17 00:00:00 2001
From: Anonymous <>
Date: Tue, 27 Jan 2026 00:00:00 +0000
Subject: [PATCH 4/9] Import OpenCL libs in a more modern way (as a target,
 replace use of `${OpenCL_INCLUDE_DIRS}` and `${OpenCL_LIBRARIES}` with
 `OpenCL::OpenCL`)

---
 ggml/src/ggml-opencl/CMakeLists.txt | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ggml/src/ggml-opencl/CMakeLists.txt b/ggml/src/ggml-opencl/CMakeLists.txt
index 79039c30..813571b7 100644
--- a/ggml/src/ggml-opencl/CMakeLists.txt
+++ b/ggml/src/ggml-opencl/CMakeLists.txt
@@ -6,8 +6,7 @@ set(TARGET_NAME ggml-opencl)
 ggml_add_backend_library(${TARGET_NAME}
                          ggml-opencl.cpp
                          ../../include/ggml-opencl.h)
-target_link_libraries(${TARGET_NAME} PRIVATE ${OpenCL_LIBRARIES})
-target_include_directories(${TARGET_NAME} PRIVATE ${OpenCL_INCLUDE_DIRS})
+target_link_libraries(${TARGET_NAME} PRIVATE OpenCL::OpenCL)
 
 if (GGML_OPENCL_PROFILING)
     message(STATUS "OpenCL profiling enabled (increases CPU overhead)")
-- 
2.51.0

