diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 10:49:19 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-22 10:49:19 +0000 |
commit | 05ee8049e2326946a2cd1720f98384c864f0a804 (patch) | |
tree | 191e91df30e75d241f1a4d82b977324daf480ba2 /net-irc/kvirc/files/kvirc-5.2.0-qtver.patch | |
parent | 43d149cba3ac08d5111255f8cf374bbe7ec343c0 (diff) |
gentoo auto-resync : 22:01:2024 - 10:49:19
Diffstat (limited to 'net-irc/kvirc/files/kvirc-5.2.0-qtver.patch')
-rw-r--r-- | net-irc/kvirc/files/kvirc-5.2.0-qtver.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/net-irc/kvirc/files/kvirc-5.2.0-qtver.patch b/net-irc/kvirc/files/kvirc-5.2.0-qtver.patch new file mode 100644 index 000000000000..9f3700ec9d9b --- /dev/null +++ b/net-irc/kvirc/files/kvirc-5.2.0-qtver.patch @@ -0,0 +1,25 @@ +From a301aa4998c4f0040d093cd2950b7b2f4ec4dcdc Mon Sep 17 00:00:00 2001 +From: Alexey Sokolov <sokolov@google.com> +Date: Sun, 21 Jan 2024 21:07:37 +0000 +Subject: [PATCH] Fix ability to select Qt5 vs Qt6 + +https://bugs.gentoo.org/922636 +--- + CMakeLists.txt | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +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) |