diff --git a/src/gallium/meson.build b/src/gallium/meson.build index 1f81fcf1fd5..5a5a8d2f0a6 100644 --- a/src/gallium/meson.build +++ b/src/gallium/meson.build @@ -175,7 +175,7 @@ if with_dri subdir('frontends/dri') subdir('targets/dri') endif -if with_osmesa == 'gallium' +if with_osmesa.contains('gallium') subdir('frontends/osmesa') subdir('targets/osmesa') endif