Details
-
Bug
-
Resolution: Done
-
P2: Important
-
6.2.4
-
None
-
-
ea1d75d4da (qt/qttools/dev) b335a2e44b (qt/qttools/6.3) ffc5058d50 (qt/qttools/6.2) ffc5058d50 (qt/tqtc-qttools/6.2) b335a2e44b (qt/tqtc-qttools/6.3) ea1d75d4da (qt/tqtc-qttools/dev) b335a2e44b (qt/qttools/6.3.0) b335a2e44b (qt/tqtc-qttools/6.3.0)
Description
It seems my default cmake build disables 'Qt::Help'. That is fine for me, but it breaks the examples. The following change seems to resolve the problem (tested on Qt 6.2.3):
diff --git a/qttools/examples/CMakeLists.txt b/qttools/examples/CMakeLists.txt index 8a360b99e70..1db20ffabaf 100644 --- a/qttools/examples/CMakeLists.txt +++ b/qttools/examples/CMakeLists.txt @@ -8,7 +8,9 @@ qt_exclude_tool_directories_from_default_target( ) if(TARGET Qt::Widgets) - add_subdirectory(help) + if(TARGET Qt::Help) + add_subdirectory(help) + endif() add_subdirectory(linguist) add_subdirectory(uitools) endif()
Attachments
For Gerrit Dashboard: QTBUG-101893 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
401327,2 | CMake: Fix build when Help target is not built | dev | qt/qttools | Status: MERGED | +2 | 0 |
401368,2 | CMake: Fix build when Help target is not built | 6.3 | qt/qttools | Status: MERGED | +2 | 0 |
401369,2 | CMake: Fix build when Help target is not built | 6.2 | qt/qttools | Status: MERGED | +2 | 0 |