diff options
author | Eike Ziller <eike.ziller@qt.io> | 2020-09-03 13:36:44 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2020-09-03 12:11:34 +0000 |
commit | 0ceb9f487c64b06a2298d0cff1186a3c6d0d0001 (patch) | |
tree | bd6337e8a4c3cd44eb960efaa344bf54cd28daa4 /cmake/FindQt5.cmake | |
parent | 9c09d822514c6f1d7008c6c7457649d3532722f3 (diff) |
CMake build: Check minimum Qt version
Change-Id: I81244c2480d647a2cf48885b2a125a02b11767b4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/FindQt5.cmake')
-rw-r--r-- | cmake/FindQt5.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/FindQt5.cmake b/cmake/FindQt5.cmake index 304c3fc07d..841e977fbf 100644 --- a/cmake/FindQt5.cmake +++ b/cmake/FindQt5.cmake @@ -22,9 +22,9 @@ if (Qt5_FIND_COMPONENTS) endif() endif() -find_package(Qt6 CONFIG COMPONENTS Core QUIET) +find_package(Qt6 ${Qt5_FIND_VERSION} CONFIG COMPONENTS Core QUIET) if (NOT Qt6_FOUND) - find_package(Qt5 CONFIG ${__arguments} ${Qt5_FIND_COMPONENTS}) + find_package(Qt5 ${Qt5_FIND_VERSION} CONFIG ${__arguments} ${Qt5_FIND_COMPONENTS}) # Remove Qt6 from the not found packages in Qt5 mode get_property(not_found_packages GLOBAL PROPERTY "PACKAGES_NOT_FOUND") |