diff options
| author | 2024-01-21 21:07:37 +0000 | |
|---|---|---|
| committer | 2024-01-21 21:07:37 +0000 | |
| commit | a301aa4998c4f0040d093cd2950b7b2f4ec4dcdc (patch) | |
| tree | 1c99bce8bf94ed0b6b21ac08275c8bfb67cd8761 | |
| parent | Workaround qt bug on QRegularExpression; Fix #2593 (#2594) (diff) | |
| download | KVIrc-a301aa4998c4f0040d093cd2950b7b2f4ec4dcdc.tar.gz KVIrc-a301aa4998c4f0040d093cd2950b7b2f4ec4dcdc.tar.bz2 KVIrc-a301aa4998c4f0040d093cd2950b7b2f4ec4dcdc.zip | |
Fix ability to select Qt5 vs Qt6
https://bugs.gentoo.org/922636
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index aabc0988b..9368e81c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -389,7 +389,9 @@ endif() ############################################################################ # first check if Qt6 or Qt5 has to be used -find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) +if(NOT DEFINED QT_VERSION_MAJOR) + find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core) +endif() # second, detect available modules for the specific Qt version find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets) if(Qt${QT_VERSION_MAJOR}Widgets_FOUND) |
