Merge branch 'wip/meson-warning' into 'main'

meson.build: explicitly convert a boolean to string

See merge request libinput/libinput!1445
This commit is contained in:
Peter Hutterer 2026-03-17 10:46:00 +10:00
commit 355f1ed2b1
2 changed files with 2 additions and 2 deletions

View file

@ -766,7 +766,7 @@ executable('ptraccel-debug',
if is_debug_build
config_tool_option_test = configuration_data()
config_tool_option_test.set('DISABLE_WARNING', 'yes')
config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui'))
config_tool_option_test.set('MESON_ENABLED_DEBUG_GUI', get_option('debug-gui').to_string())
config_tool_option_test.set('MESON_BUILD_ROOT', meson.current_build_dir())
config_tool_option_test.set('TOOL_PATH', libinput_tool.full_path())
tool_option_test = configure_file(input: 'tools/test_tool_option_parsing.py',

View file

@ -117,7 +117,7 @@ class LibinputDebugGui(LibinputTool):
assert subtool == "debug-gui"
super().__init__(subtool)
debug_gui_enabled = "@MESON_ENABLED_DEBUG_GUI@" == "True"
debug_gui_enabled = "@MESON_ENABLED_DEBUG_GUI@".lower() == "true"
if not debug_gui_enabled:
pytest.skip()