[glib-networking/glib-2-62] meson: fix assertion when checking if gio_module_dir is available



commit 772a35a66731a38bb03e5a387cfbedeb3b44c59e
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date:   Mon Sep 30 12:51:08 2019 +0200

    meson: fix assertion when checking if gio_module_dir is available
    
    We should not assert that gio module dir starts with prefix
    since this is not true for windows builds

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 3621dc1..df9d7b1 100644
--- a/meson.build
+++ b/meson.build
@@ -60,7 +60,7 @@ else
                                                   define_variable: ['libdir', join_paths(prefix, libdir)])
 endif
 
-assert(gio_module_dir.startswith(prefix), 'GIO_MODULE_DIR is missing from gio-2.0.pc')
+assert(gio_module_dir != '', 'GIO_MODULE_DIR is missing from gio-2.0.pc')
 
 # *** Checks for LibProxy   ***
 libproxy_dep = dependency('libproxy-1.0', version: '>= 0.3.1', required: get_option('libproxy'))


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