aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2021-06-17 17:49:37 +0200
committerTim Jenssen <tim.jenssen@qt.io>2021-06-17 17:07:42 +0000
commit77fd87a545e2c3374b252603ad9da6e029f42f99 (patch)
treecb26b60b55d799237983ff6a24e8d2d06ae9a852 /cmake
parent487e4a2e510c24986e22d53293da3e896c28c3ba (diff)
fix Qt 6.2 build
Change-Id: I426879c9ac8e1db84a39789d00e73498216e089c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindQt5.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/FindQt5.cmake b/cmake/FindQt5.cmake
index 589fd4eed50..e30ee54c14e 100644
--- a/cmake/FindQt5.cmake
+++ b/cmake/FindQt5.cmake
@@ -42,6 +42,11 @@ if (NOT Qt6_FOUND)
endif()
return()
else()
+ # since Qt 6.2 DesignerComponents is called private
+ find_package(Qt6DesignerComponentsPrivate CONFIG QUIET)
+ if (TARGET Qt6::DesignerComponentsPrivate)
+ add_library(Qt5::DesignerComponents ALIAS Qt6::DesignerComponentsPrivate)
+ endif()
find_package(Qt6 CONFIG ${__arguments} ${Qt5_FIND_COMPONENTS})
endif()