From 16f9716bb9232fb9dc983bea7056c6cfaed25523 Mon Sep 17 00:00:00 2001
From: starlet-dx <15929766099@163.com>
Date: Fri, 13 Jan 2023 11:34:09 +0800
Subject: [PATCH 1/1] Include opencl_dep as a dependency in gegl_lib target

---
 gegl/meson.build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gegl/meson.build b/gegl/meson.build
index 86c7a6f..5f45949 100644
--- a/gegl/meson.build
+++ b/gegl/meson.build
@@ -92,8 +92,7 @@ install_headers(gegl_headers,
 gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
 
 opencl_dep = declare_dependency(
-    sources : [opencl_headers],
-    link_with : [gegl_sources],
+  sources : [opencl_headers],
 )
 
 gegl_lib = library(api_name,
@@ -105,6 +104,7 @@ gegl_lib = library(api_name,
     gio,
     math,
     gmodule,
+    opencl_dep,
   ],
   c_args: gegl_cflags,
   link_args: gegl_ldflags,
-- 
2.30.0

