Compile calendarbackendplugin only if widgets are enabled
The example links against widgets unconditionally => add proper build-time guard Task-number: QTBUG-136101 Change-Id: I62ea42a04f7ff421753a0fc7a30cd969cfaff6e2 Reviewed-by: Magdalena Stojek <magdalena.stojek@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 5776865f7c6b234f66512eab41c871662449d80d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
26e385d881
commit
2dbc92e4ac
@ -1,4 +1,6 @@
|
||||
# Copyright (C) 2024 The Qt Company Ltd.
|
||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||
|
||||
qt_internal_add_example(calendarbackendplugin)
|
||||
if(QT_FEATURE_widgets)
|
||||
qt_internal_add_example(calendarbackendplugin)
|
||||
endif()
|
||||
|
@ -1,4 +1,4 @@
|
||||
TEMPLATE = subdirs
|
||||
CONFIG += no_docs_target
|
||||
|
||||
SUBDIRS = calendarbackendplugin
|
||||
qtHaveModule(widgets): SUBDIRS = calendarbackendplugin
|
||||
|
Loading…
x
Reference in New Issue
Block a user