aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindQt5.cmake
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-09-03 16:31:28 +0200
committerEike Ziller <eike.ziller@qt.io>2020-09-04 07:41:57 +0000
commit43ee53c233f22014befc99c12951d69379ec672e (patch)
treea9b8115b67ef13c4602571842597fed7cf886f51 /cmake/FindQt5.cmake
parent80054d1971512901d52e96f387364b87dbdc4ec4 (diff)
CMake build: Qt6 build fixes
Set Qt5_VERSION for version checks (e.g. currently still JavaScript locator filter). Export special FindQt5.cmake for external plugins and super-repo builds. Change-Id: I5edb8b0e8bef1a341cd2ff04a13d0a6ce22f6558 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/FindQt5.cmake')
-rw-r--r--cmake/FindQt5.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/FindQt5.cmake b/cmake/FindQt5.cmake
index 841e977fbf..45e21e5dfd 100644
--- a/cmake/FindQt5.cmake
+++ b/cmake/FindQt5.cmake
@@ -51,6 +51,7 @@ foreach(comp IN LISTS Qt5_FIND_COMPONENTS)
endforeach()
set(Qt5_FOUND ${Qt6_FOUND})
+set(Qt5_VERSION ${Qt6_VERSION})
foreach(tool qmake lrelease moc)
if (TARGET Qt6::${tool} AND NOT TARGET Qt5::${tool})