From 1283003f2fb3a2980e24895d9d37e437a55835b0 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Fri, 25 Aug 2017 14:33:03 +0200 Subject: [PATCH] thunderbolt: only build tests if glib >= 2.52 This change should restore building fwupd with the new thunderbolt plugin on older systems. --- plugins/thunderbolt/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/thunderbolt/meson.build b/plugins/thunderbolt/meson.build index 0de14c9dc..12f195432 100644 --- a/plugins/thunderbolt/meson.build +++ b/plugins/thunderbolt/meson.build @@ -18,7 +18,8 @@ shared_module('fu_plugin_thunderbolt', ], ) -if get_option('enable-tests') and umockdev.found() +# we use functions from 2.52 in the tests +if get_option('enable-tests') and umockdev.found() and gio.version().version_compare('>= 2.52') cargs += '-DFU_OFFLINE_DESTDIR="/tmp/fwupd-self-test"' cargs += '-DPLUGINBUILDDIR="' + meson.current_build_dir() + '"' testdatadir_src = join_paths(meson.source_root(), 'data', 'tests')