summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2023-05-06 22:27:57 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2023-05-08 10:35:12 +0000
commita851f36197330096ff44234487c0f5b4b2da3ef5 (patch)
treec758ee9118eaa8c963f3b7e93029e32e07be22c4
parent589c5b0aa667d176dc8b18202ef3d04474d14246 (diff)
downloadqbs-a851f36197330096ff44234487c0f5b4b2da3ef5.tar.gz
cmake: fix qt5 buildv2.0.1
Without the DocTools package, Qt5::qdoc target is not available. This amends e7763d972a4404b283260d29ebf7720a981349cb. Change-Id: I10a9a32686e816e65bdfdcc7a70c34d89f71c448 Reviewed-by: Dmitry Shachnev <mitya57@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 41728a399..f08ed0b0e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,7 @@ else()
if(NOT TARGET Qt6Core5Compat)
add_library(Qt6Core5Compat INTERFACE)
endif()
+ find_package(Qt${QT_VERSION_MAJOR} OPTIONAL_COMPONENTS DocTools)
endif()
if (QBS_INSTALL_HTML_DOCS OR QBS_INSTALL_QCH_DOCS)