From 197f07b4e74541b5f1f0fcaaf89d8cf76daa6e09 Mon Sep 17 00:00:00 2001 From: Juha Vuolle Date: Mon, 28 Apr 2025 12:29:01 +0300 Subject: [PATCH] Compile androidnotifier only if widgets are available The example links against widgets => add proper build-time guard. Task-number: QTBUG-136101 Pick-to: 6.9 6.8 Change-Id: I9e279791de5adf4e8bc86a09cb11e96022f9e1ce Reviewed-by: Assam Boudjelthia --- examples/corelib/platform/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/corelib/platform/CMakeLists.txt b/examples/corelib/platform/CMakeLists.txt index b1957130744..c395d8068ac 100644 --- a/examples/corelib/platform/CMakeLists.txt +++ b/examples/corelib/platform/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright (C) 2023 The Qt Company Ltd. # SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause -if(ANDROID) +if(ANDROID AND QT_FEATURE_widgets) qt_internal_add_example(androidnotifier) endif()