[rhythmbox] build: error out if meson is too new



commit eca9de2c8ae57272e804d95d884d9f41446d53bf
Author: Jonathan Matthew <jonathan d14n org>
Date:   Wed Apr 6 08:47:58 2022 +1000

    build: error out if meson is too new
    
    You might expect that the meson_version argument to project() would be
    able to do this, but it can't.

 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/meson.build b/meson.build
index 653869417..77a0b4c8e 100644
--- a/meson.build
+++ b/meson.build
@@ -3,6 +3,10 @@ project('rhythmbox', 'c',
   meson_version: '>= 0.59.0',
   default_options: ['c_std=gnu89'])
 
+if meson.version().version_compare('> 0.60.3')
+      error('unsupported version of meson, please use 0.60.3')
+endif
+
 gnome = import('gnome')
 i18n = import('i18n')
 pkg = import('pkgconfig')


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