[gegl] Issue 288: Build failure due to dependency



commit 392e60be7371362c1149a9825d7644df86416692
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Sat Oct 30 23:57:34 2021 +0100

    Issue 288: Build failure due to dependency
    
    According to the meson docs, dependencies between generated headers the
    ultimate users, need to be declared, as ninja will run
    builds out of order.
    
    This attempts to fix this, but without being absolutely sure the
    dependency is correctly recorded. In any case, the build is working.

 gegl/meson.build | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/gegl/meson.build b/gegl/meson.build
index cfd176d45..86c7a6fa1 100644
--- a/gegl/meson.build
+++ b/gegl/meson.build
@@ -91,6 +91,11 @@ install_headers(gegl_headers,
 
 gegl_ldflags = os_osx ? ['-framework', 'OpenCL'] : []
 
+opencl_dep = declare_dependency(
+    sources : [opencl_headers],
+    link_with : [gegl_sources],
+)
+
 gegl_lib = library(api_name,
   gegl_sources,
   include_directories: [rootInclude, geglInclude],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]