summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2022-03-18 14:45:26 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-19 00:30:29 +0000
commitffc5058d50fcc94c26586dec2203018b7a5f3216 (patch)
tree93efff25f473b7b25c14377fac6547ac8dc6f6f6
parent36a2562ee96c81df3430842b37b6340be2bf8b99 (diff)
downloadqttools-ffc5058d50fcc94c26586dec2203018b7a5f3216.tar.gz
CMake: Fix build when Help target is not built
Fixes: QTBUG-101893 Change-Id: Id37064b7fb995c966d3249975fd2e398a6906757 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit ea1d75d4daa1268c2887d2f65dfdb4bc45507ed1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--examples/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 9407f84b5..47dd15650 100644
--- a/examples/CMakeLists.txt
+++ b/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()