mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 18:09:49 +01:00
build: workaround for meson disabler object not working with if not
This commit is contained in:
parent
b051bb68c2
commit
9796abcced
1 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,8 @@ foreach dep : ['libpng', 'libavutil', 'libavcodec', 'libavformat']
|
|||
endif
|
||||
endforeach
|
||||
|
||||
if not cc.has_header('libavutil/hwcontext_drm.h', dependencies: libavutil)
|
||||
# Check if libavutil is found because of https://github.com/mesonbuild/meson/issues/6010
|
||||
if libavutil.found() and not cc.has_header('libavutil/hwcontext_drm.h', dependencies: libavutil)
|
||||
libavutil = disabler()
|
||||
endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue