meson: Switch default_options to dict
As of meson 1.2.0 we can pass a dict rather than encoding settings in
a string. We already require meson 1.3.0, so take the opportunity to
improve the ergonomics.
Change-Id: I8ce7b5b02ddcb3150c6ff25c0ff99e8d594f3a74
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/meson.build b/meson.build
index 50eaf73..bf309ec 100644
--- a/meson.build
+++ b/meson.build
@@ -1,16 +1,16 @@
project(
'libpldm',
'c',
- default_options: [
- 'debug=true',
- 'optimization=g',
- 'warning_level=3',
- 'werror=true',
- 'cpp_std=c++23',
- 'c_std=c17',
- 'b_ndebug=if-release',
- 'tests=' + (meson.is_subproject() ? 'disabled' : 'enabled'),
- ],
+ default_options: {
+ 'debug': true,
+ 'optimization': 'g',
+ 'warning_level': '3',
+ 'werror': true,
+ 'cpp_std': 'c++23',
+ 'c_std': 'c17',
+ 'b_ndebug': 'if-release',
+ 'tests': (meson.is_subproject() ? 'disabled' : 'enabled'),
+ },
version: '0.10.0',
meson_version: '>=1.3.0',
)