fix Qt 6.2 build

Change-Id: I426879c9ac8e1db84a39789d00e73498216e089c
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tim Jenssen
2021-06-17 17:49:37 +02:00
parent 487e4a2e51
commit 77fd87a545

View File

@@ -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()