diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-18 14:45:26 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-03-19 00:48:21 +0100 |
commit | ea1d75d4daa1268c2887d2f65dfdb4bc45507ed1 (patch) | |
tree | 537668ec8b9233997c63c61a0fec790af1cf64b9 /examples/CMakeLists.txt | |
parent | 71d79a30de7d8cb49e16d5c3dc04a671f0e102cf (diff) | |
download | qttools-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.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() |