mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
meson: Fix lmsensors warning message.
Fixes:138c003d22("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> (cherry picked from commit855afe0144)
This commit is contained in:
parent
d27e1776e1
commit
c1e2e33752
2 changed files with 3 additions and 3 deletions
|
|
@ -1525,7 +1525,7 @@
|
|||
"description": "meson: Fix lmsensors warning message.",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "138c003d22739b0d1e6860ed398dd511a44cde04"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1762,10 +1762,10 @@ endif
|
|||
_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')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue