diff --git a/src/mesa/meson.build b/src/mesa/meson.build index c1334c96374..72d87178aa1 100644 --- a/src/mesa/meson.build +++ b/src/mesa/meson.build @@ -732,6 +732,6 @@ endif if with_glx == 'xlib' subdir('drivers/x11') endif -if with_tests +if with_tests and dri_drivers != [] subdir('main/tests') endif