aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 22:55:20 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 22:55:20 +0100
commit1e2d59015fa6ae4c743e8373e05999fd37956f90 (patch)
treedf57d256e0906472309843a5d46a99a209dd1486
parent2274d575c4e32e475d843202f000af39f0b3f0e5 (diff)
CMakeLists.txt: Only find Qt${QT_VERSION_MAJOR}
Otherwise, systems with both Qt5 and Qt6 installed might cause pkg_check_modules(qca) to find the invalid version.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d4fe840..2fdbaf4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,7 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-find_package(QT NAMES Qt6 Qt5 COMPONENTS Concurrent Widgets Sql REQUIRED)
+find_package(QT NAMES Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent Widgets Sql REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Concurrent Widgets Sql REQUIRED)
set(PROJECT_SOURCES