summaryrefslogtreecommitdiff
path: root/examples/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-03-18 14:45:26 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2022-03-19 00:48:21 +0100
commitea1d75d4daa1268c2887d2f65dfdb4bc45507ed1 (patch)
tree537668ec8b9233997c63c61a0fec790af1cf64b9 /examples/CMakeLists.txt
parent71d79a30de7d8cb49e16d5c3dc04a671f0e102cf (diff)
downloadqttools-ea1d75d4daa1268c2887d2f65dfdb4bc45507ed1.tar.gz
CMake: Fix build when Help target is not built
Pick-to: 6.2 6.3 Fixes: QTBUG-101893 Change-Id: Id37064b7fb995c966d3249975fd2e398a6906757 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'examples/CMakeLists.txt')
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 54460f896..7e4db83ab 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -5,7 +5,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()