build-sys: meson: only warn about lack of udev on Linux

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
This commit is contained in:
Greg V 2021-01-06 14:43:14 +03:00 committed by PulseAudio Marge Bot
parent 379fd67c1c
commit 33c89b6b76

View file

@ -938,7 +938,7 @@ if host_machine.system() != 'windows'
]
warning('\n' + '\n'.join(message))
endif
if not udev_dep.found()
if host_machine.system() == 'linux' and not udev_dep.found()
message = [
'You do not have udev support enabled. It is strongly recommended',
'that you enable udev support if your platform supports it as it is',