diff --git a/recipes-qt/automotive/gammaray_git.bb b/recipes-qt/automotive/gammaray_git.bb
index 04560231645b396393d8045689a0d22060161c0c..8dd44bb6ddcbede4ba0d03615987d73c131ee60a 100644
--- a/recipes-qt/automotive/gammaray_git.bb
+++ b/recipes-qt/automotive/gammaray_git.bb
@@ -12,7 +12,8 @@ BRANCH = "master"
 SRCREV = "6262eaeaee74109f9c1bd85de99c9b039d8938f5"
 PV = "master+git${SRCPV}"
 
-DEPENDS = "qtdeclarative qtlocation qtsvg qttools qtconnectivity qt3d"
+DEPENDS = "qtdeclarative qtlocation qtsvg qttools qtconnectivity qt3d qtivi \
+           ${@base_contains("DISTRO_FEATURES", "wayland", "qtwayland", "", d)}"
 
 S = "${WORKDIR}/git"