prefer std::format over fmt
Since C++20, std::format has existed so prefer that. For the single
fmt::print call we can use stdplus::print until GCC supports the std
one.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4c8af58966fb7330dee20fb13ae2ef11d8a823c7
diff --git a/meson.build b/meson.build
index 7a1b810..28d4b1b 100644
--- a/meson.build
+++ b/meson.build
@@ -11,8 +11,6 @@
meson_version: '>=1.1.1',
)
-fmt = dependency('fmt')
-
conf = configuration_data()
conf.set_quoted('BUSNAME_PREFIX', get_option('busname-prefix'))
conf.set_quoted('SENSOR_ROOT', get_option('sensor-root'))
@@ -22,14 +20,15 @@
sysfs_headers = include_directories('.')
sysfs_deps = [
- fmt,
+ dependency('stdplus'),
]
sysfs_lib = static_library(
'sysfs',
'sysfs.cpp',
include_directories: sysfs_headers,
- dependencies: sysfs_deps)
+ dependencies: sysfs_deps,
+)
sysfs_dep = declare_dependency(
dependencies: sysfs_deps,
@@ -39,7 +38,6 @@
hwmon_headers = include_directories('.')
hwmon_deps = [
- fmt,
dependency('gpioplus'),
dependency('phosphor-dbus-interfaces'),
dependency('phosphor-logging'),