From 64e3629cdf9d8ab52f887841f25fe8c76c8a756c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 9 Apr 2025 13:05:37 +0200 Subject: [PATCH] Silence AutoMoc for qplatformwindow_p.h on non-Wayland platforms Wayland is the only platform that declares a native interface that depends on QObject. Amends 2acd0078598ed87a76b5ea66b042e8b096ac222f. Change-Id: If625723e242f5cdb0b8972d90684eea7d86cfb14 Reviewed-by: Alexandru Croitor --- src/gui/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 46a03b8935b..7d4a42199b5 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -47,7 +47,7 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID} endif() # Silence AUTOMOC warning 'No relevant classes found. No output generated.' -if (NOT UNIX) +if (NOT QT_FEATURE_wayland) set_source_files_properties(kernel/qplatformwindow_p.h PROPERTIES SKIP_AUTOMOC TRUE) endif()