summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuha Vuolle <[email protected]>2025-04-28 12:29:01 +0300
committerJuha Vuolle <[email protected]>2025-05-02 16:51:15 +0300
commit197f07b4e74541b5f1f0fcaaf89d8cf76daa6e09 (patch)
tree031de78066d6cda47c16c32049be49c064f6dfcc
parentccce91461a39adebde7ec7803b4cc0b97093f77f (diff)
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 <[email protected]>
-rw-r--r--examples/corelib/platform/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()