Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
6.6
-
None
Description
Building qtbase I see the following warning:
CMake Warning (dev) at cmake/QtModuleHelpers.cmake:1320 (message): Condition is ignored when adding the following header file(s) to the Gui module: File: src/gui/accessible/qaccessible.h Condition: QT_FEATURE_accessibility File: src/gui/accessible/qplatformaccessibility.h Condition: QT_FEATURE_accessibility The usage of the file(s) is not properly isolated in this or other modules according to the condition. This warning is for the Qt maintainers. Please make sure that file include(s) are guarded with the appropriate macros in the Qt code. If files should be added to the module unconditionally, please move them to the common SOURCES section in the qt_internal_add_module call. Call Stack (most recent call first): cmake/QtModuleHelpers.cmake:893 (qt_internal_collect_module_headers) cmake/QtScopeFinalizerHelpers.cmake:24:EVAL:1 (qt_finalize_module) src/gui/CMakeLists.txt:DEFERRED This warning is for project developers. Use -Wno-dev to suppress it.
From src/gui/CMakeLists.txt:
qt_internal_extend_target(Gui CONDITION QT_FEATURE_accessibility CONDITION_INDEPENDENT_SOURCES accessible/qaccessible.h accessible/qplatformaccessibility.h SOURCES
And in src/gui/accessible/qaccessible.h:
#if QT_CONFIG(accessibility)
Attachments
Issue Links
- duplicates
-
QTBUG-111785 CMake warns about accessible/qaccessible.h
-
- Reported
-