[balsa/77-notification] fix redundant check in meson build file



commit 66c3bfee4fe5fe55fe6ef73d7280fcd06fd3f9e5
Author: Albrecht Dreß <albrecht dress netcologne de>
Date:   Tue Aug 9 20:02:38 2022 +0200

    fix redundant check in meson build file
    
    See https://gitlab.gnome.org/GNOME/balsa/-/merge_requests/63#note_1524654
    (thanks to @peterb).

 meson.build | 12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/meson.build b/meson.build
index b512edd7a..db5e02ff0 100644
--- a/meson.build
+++ b/meson.build
@@ -205,22 +205,14 @@ endif
 # Autocrypt
 if autocrypt
   autocrypt_dep = dependency('sqlite3', required : true)
-  if autocrypt_dep.found()
-    conf.set('ENABLE_AUTOCRYPT', 1, description : 'If defined, enable Autocrypt support.')
-  else
-    error('*** You enabled Autocrypt but sqlite3 library is not found.')
-  endif
+  conf.set('ENABLE_AUTOCRYPT', 1, description : 'If defined, enable Autocrypt support.')
   balsa_deps += autocrypt_dep
 endif
 
 # System Tray Icons
 if systray
   systray_dep = dependency('xapp', required : true)
-  if systray_dep.found()
-    conf.set('ENABLE_SYSTRAY', 1, description : 'If defined, enable System Tray Icon support.')
-  else
-    error('*** You enabled System Tray Icon support but libxapp is not found.')
-  endif
+  conf.set('ENABLE_SYSTRAY', 1, description : 'If defined, enable System Tray Icon support.')
   balsa_deps += systray_dep
 endif
 


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