diff --git a/src/intel/ds/meson.build b/src/intel/ds/meson.build index 411d5860a55..0da1a162c6d 100644 --- a/src/intel/ds/meson.build +++ b/src/intel/ds/meson.build @@ -27,4 +27,6 @@ pps_intel_dep = declare_dependency( ) pps_datasources += pps_intel_dep -with_datasources += 'intel' +if not with_datasources.contains('intel') + with_datasources += 'intel' +endif diff --git a/src/panfrost/ds/meson.build b/src/panfrost/ds/meson.build index a31a71561f2..379a25c4d26 100644 --- a/src/panfrost/ds/meson.build +++ b/src/panfrost/ds/meson.build @@ -28,4 +28,6 @@ pps_panfrost_dep = declare_dependency( ) pps_datasources += pps_panfrost_dep -with_datasources += 'panfrost' +if not with_datasources.contains('panfrost') + with_datasources += 'panfrost' +endif