[gnome-contacts/gnome-3-28] Meson: fix cheese auto checking.



commit 91dfad7bf79271a4c295f467866cff365d78fe29
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Thu Apr 12 23:38:48 2018 +0200

    Meson: fix cheese auto checking.
    
    Note that this option became a bool from 3.27 and later on.

 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 674cdee..87a4a2b 100644
--- a/meson.build
+++ b/meson.build
@@ -49,7 +49,7 @@ math = meson.get_compiler('c').find_library('m')
 # Options
 cheese_enabled = (get_option('with-cheese') != 'no')
 if cheese_enabled
-  cheese_required = (cheese_enabled == 'yes')
+  cheese_required = (get_option('with-cheese') == 'yes')
   cheese = dependency('cheese', required: cheese_required)
   cheese_gtk = dependency('cheese-gtk', version: '>= 3.3.91', required: cheese_required)
   cheese_enabled = cheese.found() and cheese_gtk.found()


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