diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-18 14:45:26 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-03-19 00:30:29 +0000 |
commit | b335a2e44b2fd8d7d066805a06f906734ea2d827 (patch) | |
tree | 3ceb56ceeae6ee698db801ffdf5fbab1da67e283 /examples | |
parent | 82d6df879bb178db1f31c7a1d7e6616d4db88f6f (diff) |
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>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 4 |
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() |