From b335a2e44b2fd8d7d066805a06f906734ea2d827 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 18 Mar 2022 14:45:26 +0100 Subject: CMake: Fix build when Help target is not built Fixes: QTBUG-101893 Change-Id: Id37064b7fb995c966d3249975fd2e398a6906757 Reviewed-by: Alexey Edelev (cherry picked from commit ea1d75d4daa1268c2887d2f65dfdb4bc45507ed1) Reviewed-by: Qt Cherry-pick Bot --- examples/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'examples') 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() -- cgit v1.2.3