From ea5d6d87483189f9a6800c1df409494a6c863c8a Mon Sep 17 00:00:00 2001 From: David Redondo Date: Wed, 6 Dec 2023 14:47:49 +0100 Subject: [PATCH] Error out early when base was build without our native interfaces Instead of letting people run into compile errors, bail out and explain what's wrong. Change-Id: I2f2067ee07d95238e287e39ce78e73eddbca836c Reviewed-by: David Edmundson --- src/platformsupport/wayland/configure.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/platformsupport/wayland/configure.cmake b/src/platformsupport/wayland/configure.cmake index 4270e819628..4769441e54c 100644 --- a/src/platformsupport/wayland/configure.cmake +++ b/src/platformsupport/wayland/configure.cmake @@ -265,3 +265,9 @@ qt_configure_add_summary_entry(ARGS "wayland-dmabuf-server-buffer") qt_configure_add_summary_entry(ARGS "wayland-shm-emulation-server-buffer") qt_configure_add_summary_entry(ARGS "wayland-vulkan-server-buffer") qt_configure_end_summary_section() # end of "Qt Wayland Drivers" section + +qt_configure_add_report_entry( + TYPE ERROR + MESSAGE "Qt Wayland Client requires QtGui to be build with support for wayland" + CONDITION NOT QT_FEATURE_wayland AND QT_FEATURE_wayland_client +)