Fixes: 138c003d2273 ("meson: deprecated 'true' and 'false' in combo options for 'enabled' and 'disabled'")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6397>
_sensors = get_option('lmsensors')
if _sensors == 'true'
_sensors = 'enabled'
- warning('sensors option "true" deprecated, please use "enabled" instead.')
+ warning('lmsensors option "true" deprecated, please use "enabled" instead.')
elif _sensors == 'false'
_sensors = 'disabled'
- warning('sensors option "false" deprecated, please use "disabled" instead.')
+ warning('lmsensors option "false" deprecated, please use "disabled" instead.')
endif
if _sensors != 'disabled'
dep_lmsensors = cc.find_library('sensors', required : _sensors == 'enabled')